Navigation

Operators and Keywords

Function List:

C++ API

Function File: [s, i] = sortrows (A)
Function File: [s, i] = sortrows (A, c)

Sort the rows of the matrix A according to the order of the columns specified in c.

If c is omitted, a lexicographical sort is used. By default ascending order is used however if elements of c are negative then the corresponding column is sorted in descending order.

See also: sort.

Package: octave