sort
Sorts an IntArray using counting-style bucket sort. Requires knowing the max value upfront.
Parameters
array
array to sort
Sorts the array in ascending natural order.
Parameters
array
array to sort
Sorts the array using the given comparator.
Parameters
array
array to sort
comparator
comparator to determine order