sortUsingComparator