#
sort
Function • Sorts the given array in place using the comparator function. Returns the sorted (mutated) array.
sort comparator, array → array
Arguments
name | type | description |
---|---|---|
comparator | Function |
The function to use for comparisons. |
array | Array |
The array to sort. |
Returns
name | type | description |
---|---|---|
array | Array |
The sorted array. |