Assume you have some objects which have several fields they can be compared by:
public class Person { private String firstName; private String lastN
If there are multiple ways a user might order person, you could also have multiple Comparators setup as constants somewhere. Most of the sort operations and sorted collections take a comparator as a parameter.