Correct some sort()/compareTo() methods.