Contents

sort(on:by:)

Arranges the rows of a data frame according to a column that you select by its column identifier, with a predicate.

Declaration

mutating func sort<T>(on columnID: ColumnID<T>, by areInIncreasingOrder: (T, T) throws -> Bool) rethrows

Parameters

  • columnID:

    The identifier of a column.

  • areInIncreasingOrder:

    A closure that returns a Boolean that indicates whether the two elements are in increasing order.

Discussion

See Also

Sorting a Data Frame