rsort v -- produces a reverse sorted version of the list v.
The rsort function uses <= to compare elements of the list, which in turn calls upon ?.
i1 : rsort {g,d,w,s,c,a,r} |
i2 : rsort {4,2,3,1} |
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: