Returns a comparison function that compares two arrays of values with the given comparison function(s) for multi-
level sorting. Compares values from each array pair-wise.
Throws
If the lengths of the two arrays (aValues and bValues) do not match or if the lengths of the two arrays
and comparisonFunctions (if is an array) do not match.
Note
Lengths of the two arrays (aValues and bValues) and comparisonFunctions (if is an array) must match.
Returns a comparison function that compares two arrays of values with the given comparison function(s) for multi- level sorting. Compares values from each array pair-wise.
Throws
If the lengths of the two arrays (
aValuesandbValues) do not match or if the lengths of the two arrays andcomparisonFunctions(if is an array) do not match.Note
Lengths of the two arrays (
aValuesandbValues) andcomparisonFunctions(if is an array) must match.Note
For usage with arrays of objects, use compareObjects.
Example: Using a single comparison function.
Example: Using multiple comparison functions.
Param: comparisonFunctions
The comparison function or functions to use to compare each pair of values.
Param: map
A function to map the input values to the values for comparison. Required when
Tis not an array type.