- Source: src/utils/array/StableSort.js (Line 10)
Methods
-
<static> inplace(arr, comp)
-
Sort the input array and simply copy it back if the result isn't in the original array, which happens on an odd number of passes.
Parameters:
Name Type Description arr
array The input array.
comp
function The comparison handler.
- Since: 3.0.0
- Source: src/utils/array/StableSort.js (Line 32)
Returns:
The sorted array.
- Type
- array