I don't think you can directly use sort, but someting like this should be a good starting point:
According to my
Java in a Nutshell, in most cases the Comparator.compare method should be implemented to return 0 only when o1.equals(o2) returns true. My example doesn't abide by that rule, so there may be a better way to sort this...
Cheers, Neil
