Hi@akhtar,

You can sort the rows of a Dataframe according to column values. You can use the order() function. The order() function takes one or more vectors as arguments and returns an integer vector indicating the order of the vectors.

*# Sort the pirates dataframe by height*
pirates <- pirates[**order**(pirates$height),]