general sorting

Is there a generic way to sort all the objects in a collection based on some specific attribute of the object?
[124 byte] By [ssdss] at [2007-9-26 2:40:45]
# 1
Yes.Lookup Collections.sort(),you need to implement Comparable for the collection items though.--lichu
lichudang at 2007-6-29 10:15:21 > top of Java-index,Core,Core APIs...