Correct Answer : x[rev(order(x$B)),]
Explanation : x[rev(order(x$B)),] sort the dataframe in reverse order.