OptionalcompareFunc: CompareFunc = defaultCompareMakes comparisons on the elements on the array.Default is to return true if the lhs is less than rhs.
OptionalswapFunc: SwapFunc<T> = defaultSwapFunction to swap the elements in the array.
Optionalmin: number = 0Optionalmax: number = ...
The array to sort.