Supplemental Material for Baldwin and Scragg, Algorithms and Data Structures: The Science of Computing; Charles River Media, 2004 (Now published by Cengage Learning)
descendingOrder
The line
contents[cur] = contents.length - i;
should read
contents[cur] = contents.length - cur;
Thanks to Steve Mattingly for pointing out this error.
Copyright © 2008 Charles River Media. All rights reserved.
Revised July 29, 2008 by Doug Baldwin