Method Array.sort_array()
- Method
sort_array
arraysort_array(arrayarr,function(:void)|voidcmp,mixed...args)- Description
This function sorts the array
arrafter a compare-functioncmpwhich takes two arguments and should return1if the first argument is larger then the second. Returns the sorted array -arris not sorted destructively.The remaining arguments
argswill be sent as 3rd, 4th etc. argument tocmp.If
cmpis omitted, `>() is used instead.- See also
map(), sort(), `>(), dwim_sort_func, lyskom_sort_func, oid_sort_func