@lang:sort
Sort an array using a comparator helper.
Returns: array
Syntax
Section titled “Syntax”@lang:sort(arr fn)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
arr | array | Source array |
fn | helper | Comparator helper returning a number |
See Also
Section titled “See Also”- @reverse — reverse an array