SortRows function

Sorting rows of a matrix or data frame