Rank jobs while preserving arrival order
qsort
slices.SortStableFunc
Comparator.comparingInt and List.sort
sortedWith and compareBy
usort and the spaceship operator