[Top]
Array
|
Method Array.sort_array()
- Method
sort_array
-
array Array.sort_array(array foo, function|void cmp, mixed ... args)
- Description
-
This function sorts an array after a compare-function cmp
which takes two arguments and should return 1 if the first argument
is larger then the second.
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, `>(), Array.dwim_sort_func, Array.lyskom_sort_func
|