From http://stackoverflow.com/questions/1296646/how-to-sort-a-dataframe-by-columns-in-r

Sorting / Ordering data frames in R