Comparators can be passed to a sort method (such as Collections.sort or Arrays.sort) to allow precise control over the sort order.
Lists (and arrays) of objects that implement this interface can be sorted automatically by Collections.sort (and Arrays.sort).