view v sorton cols...   =>   view
v   input view
cols...   column and order specifiers

Sorton is a generalized version of {sort} which sorts v according to cols.... Sorting is stable, i.e. rows will remain in the same order as in v if they are identical on the sort columns.

Apart from specifying columns, the cols... arguments can also include special "+" and "-" markers indicating that all subsequent columns are to be sorted in ascending or descending order, respectively.

Examples:
set v [view {A B} def {B a B b A c A b C b}]

view $v sorton A
AB
0Ac
1Ab
2Ba
3Bb
4Cb
view $v sorton - A
AB
0Cb
1Ba
2Bb
3Ac
4Ab
view $v sorton A B
AB
0Ab
1Ac
2Ba
3Bb
4Cb
view $v sorton A - B
AB
0Ac
1Ab
2Bb
3Ba
4Cb
view $v sorton - B + A
AB
0Ac
1Ab
2Bb
3Cb
4Ba

(sorton is defined in Ratcl)