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-functioncmp
which takes two arguments and should return1
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 tocmp
.If
cmp
is omitted, `>() is used instead.- See also
map(), sort(), `>(), dwim_sort_func, lyskom_sort_func, oid_sort_func