Function Reference
— Function File: 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 corrosponding column is sorted in descending order.