Skip to content
Prev 152163 / 398500 Next

Sorting a matrix by a column

On Mon, 4 Aug 2008, John Sorkin wrote:

            
Rather, use sort.list, e.g.  data[sort.list(data[,2]), ]

There's an example for data frames on ?order.