sorted(on:_:order:)
Generates a data frame by copying the data frame’s rows and then sorting the rows according to a column that you select by its name and type.
Declaration
func sorted<T>(on columnName: String, _ type: T.Type, order: Order = .ascending) -> DataFrame where T : ComparableParameters
- columnName:
The name of a column.
- type:
The column’s type.
- order:
A sorting order.