by-order function

Ordering (sorting) rows of a data frame