SORT

1_example

 Suppose you have a data vector, X = [1;2;3;4;5]
 To sort X into descending order, enter: SORT\DOWN X   after which
 X = [5;4;3;2;1]

2_example

 Suppose you have three data vectors, X, Y, and Z, which represent
 rectangular coordinates and an associated altitude:
 X = [1;2;3;4;5],  Y = [10;8;6;4;2],  Z = [-.3;-1;-.5;2;-2]
 If you want to sort Z into descending order, without breaking up the
 triplets, enter:   SORT\DOWN Z X Y     After which the vectors are:
 X = [4;1;3;2;5], Y = [4;10;6;8;2], Z = [2;-.3;-.5;-1;-2]

3_example

 Suppose you have three data vectors, X, Y, and Z, which represent
 rectangular coordinates and an associated altitude:
 X = [1;2;3;4;5],  Y = [10;8;6;4;2],  Z = [-.3;-1;-.5;2;-2]
 If you want to sort Y into ascending order, without breaking up the
 triplets, enter:   SORT\DOWN Y X Z   After which the vectors are:
 X = [5;4;3;2;1],  Y = [2;4;6;8;10],  Z = [-2;2;-.5;-1;-.3]