Sorts an array using the in-place quick-sort algorithm.
The type of elements in the array.
Type parameters
T
Parameters
array: Array<T>
The array of elements.
comparer: IFunction2<T, T, CompareResult>
The function used to compare elements in the array -
should return less than 0 if item 1 is less than item 2 (item 1 should appear
before item 2), 0 if the items are equal, or more than 0 is item 1 is greater
than item 2 (item 1 should appear after item 2).