sort
-
command
-
The
sort
command sorts the contents of a container. The container's contents are replaced by the sorted contents. -
Examples: +
set numbers to [4,12,99,16,82,3]
sort numbers in descending numeric order
put numbers —> [99,82,16,12,4,3] -
Related: sorted, shuffle, reverse