# NOT RUN {
x <- data.frame(matrix(sample(1:4,64,replace=TRUE),ncol=4))
dfOrder(x) # sort by all columns
dfOrder(x,c(1,4)) #sort by the first and 4th column
dfOrder(x,c(1,-2)) #sort by the first in increasing order,
#the second in decreasing order
# }
Run the code above in your browser using DataLab