Lisa Wang wrote: > Hi there, > > Could anybody help me on how to sort a dataframe by one variable in the > dataframe? > > Thank you > See ?order. x <- data.frame(a = runif(10), b = 1:10) x[order(x$a), ] --sundar