Assume you have some objects which have several fields they can be compared by:
public class Person { private String firstName; private String lastN
Instead of comparison methods you may want to just define several types of "Comparator" subclasses inside the Person class. That way you can pass them into standard Collections sorting methods.