Learn R Programming

MADPop (version 1.1.7)

colSort: Matrix Sort

Description

Sorts a matrix by first column, breaking ties with second column, breaking those ties with 3rd, etc.

Usage

colSort(X)

Value

Same matrix with rows permuted according to sort order.

Arguments

X

matrix to sort.