compareTo resets the comparison values, so Arrays.sort() automatically sorts according to compareTo. no need for another comparator