- Method sort_array
array sort_array(array arr, function(:void)|void cmp, mixed ... args)
This function sorts the array arr after a compare-function cmp which takes two arguments and should return
1if 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