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