Given a the following class:
class Boo {
    private final String propertyX;
    private final Double propertyY;
    private final Integer propertyZ;
}
How would one go about constructing a Comparator which would result in instances of the class being ordered by propertyX then by propertyY then by propertyZ when Collection.sort(...) is called on a Collection<Boo>.
Is a Comparator the way to go?
 
     
    