Contents Previous Next Subchapters

Specifying Sort Key When Sorting By Pointers
Syntax psort(matrixstartwidth)
See Also psort(matrix)

Returns an integer column vector containing a ranking of the rows of matrix, where matrix is an integer, real, double-precision, or character matrix. The first element of the returned vector contains the row number of the smallest row in matrix, the second element contains the row number of the next largest, and so on. One row of matrix is considered larger than another in the same sense as in sort(matrix, start, width) .

If you enter
     x = {"03/28/64", "06/10/52", "08/12/68"}
     psort(x, 7, 2)
O-Matrix will respond
which is the order of the rows of x when sorted by year.