Method Array.sort_array()
- Method sort_array
array sort_array(array arr, function(:void)|void cmp, mixed ... args)
- Description
This function sorts the array arr after a compare-function cmp which takes two arguments and should return
1
if the first argument is larger then the second. Returns the sorted array - arr is not sorted destructively.The remaining arguments args will be sent as 3rd, 4th etc. argument to cmp.
If cmp is omitted, `>() is used instead.
- See also
map(), sort(), `>(), dwim_sort_func, lyskom_sort_func, oid_sort_func