Assume you have some objects which have several fields they can be compared by:
public class Person { private String firstName; private String lastN
You can also have a look at Enum that implements Comparator.
http://tobega.blogspot.com/2008/05/beautiful-enums.html
e.g.
Collections.sort(myChildren, Child.Order.ByAge.descending());