The array is reordered according to the values in the vector. The optional subscript is rounded to an integer and specifies which subscript is to be reordered. If it is not specified it is assumed to be one.
The vector must be a one dimensional array which is the same size as the specified subscript. It contains integers specifying valid subscript values with no duplicate values. The MAT SORT statement may be used to generate vector values.
COMPLEX Arrays
MAT REORDER can reorder a complex array, but a reorder vector can not be complex.