Contents

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 : Comparable

Parameters

  • order:

    A sorting order.

Discussion

See Also

Creating a Data Frame by Sorting a Column