Command Reference : Matrix Language Reference
  
 
@rowranks
Syntax: @rowranks(m[, order])
Argument 1: matrix, m
Argument 2: (optional) option, order
Return: matrix
Returns a matrix where each row contains the ranking of the values of the corresponding row of m. The option controls the direction of the ranking: “a” (ascending - default) or “d” (descending).
Example:
matrix a = @rowranks(m1, “d”)
See also @sort, @colranks, @ranks, @rapplyranks, @permute, and @rowsort.