http://qs321.pair.com?node_id=1114829


in reply to How can I access object data in a user defined sort cmp function?

If sorting is something you care about within your class, then don't tell sort how to handle your object. Design a method that sorts your data within the object.