Sorts arr in-place using counting sort. The difference between the lowest and highest return value of orderPred(arr[i]) shouldn't be too big.
See Implementation
Sorts arr in-place using counting sort. The difference between the lowest and highest return value of orderPred(arr[i]) shouldn't be too big.