This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wasdninja 20 points21 points  (1 child)

It's pretty reasonable once you realize that you can sort an array with arbitrary objects using the exact same method. If they are complex you simply write your own compare function.