Robert Klemme wrote:
> Just a few picky remarks. :-)  Sorting on the string representation,
> while it may work, is unstable.  It's better to sort based on members
> because with your approach you create a dependency between to_s and
> sorting which is neither necessary nor obvious.
> 
> Also, I would only implement this in the class if it is the /default/
> order for instances of Cursus.

And how about performance on using to_s when sorting? Each time an 
object is compared for the sort, 2 string conversions has to be done and 
put in the GC, etc? Has anyone made benchmarks on this?


Best regards,

Jari Williamsson