Sure, that works now, I should think. Overload cmp for the Book class, and sort an array of refs to Books. It should call your comparison code for each pair of Books it needs to figure out the order, without having to say so in the sort call.
—John
In reply to Re: sort hash keys as numbers and maybe even more...
by John M. Dlugosz
in thread sort hash keys as numbers and maybe even more...
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |