List of functions and data types in Array
[a] sorted([a] xs, Int(a, a) sortfn=compare)
Arguments
xs: The array to sort
sortfn: Optionally, a user-defined comparison function.
Usage
Sorts an array, but unlike sort returns a new array and leaves the original unmodified.
Related
- See the sort function documentation for usage examples.