Sort¶
sort
¶
Ascendant sort the dataframe from a column name
Positional parameter:
- columnName
required
String
: the name of the column to sort
final df2 = df.sort("timestamp");
sortDesc
¶
Descendant sort the dataframe from a column name
Positional parameter:
- columnName
required
String
: the name of the column to sort
final df2 = df.sortDesc("timestamp");