array->sort
Sorts array values.
Target
Signature
1array->sort(ascending::boolean=true)Sorts array values.
array->sort is called with member syntax on a receiver value. array->sort is useful when moving through groups of values. Prefer collection operations that match the shape of the data rather than converting everything to strings.
Parameters
ascending- Optional value of type
boolean. Supplyascendingpositionally unless the signature shows a keyword form.
Examples
Basic call
1array(3,1,2)->sortThe example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.