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 column identifier.
Declaration
func sorted<T>(on columnID: ColumnID<T>, order: Order = .ascending) -> DataFrame where T : ComparableParameters
- order:
A sorting order.