sort v -- produces a sorted version of the list v.
The sort function uses <= to compare elements of the list, which in turn calls upon ?.
i1 : sort {c,e,a,f,b,f} |
i2 : sort {4,2,6,3,8,2} |
Note: we have modified the sort order for strings so that symbols come before alphanumeric characters, and upper and lower case characters are sorted together.
See also: