Sort jobs by priority
qsort
std::stable_sort
slices.SortStableFunc
sortedWith and compareBy
usort and the spaceship operator