Similar to java.util.Comparator#compare(Object, Object), should compare two and return how they should be ordered.