SortOrder

public final class SortOrder: Ordering

SortOrder allows to specify the ordering direction which is ascending or descending order. The default ordering is the ascending order.

  • Specifies ascending order.

    Declaration

    Swift

    public func ascending() -> Ordering

    Return Value

    The ascending Ordering object.

  • Specifies descending order.

    Declaration

    Swift

    public func descending() -> Ordering

    Return Value

    The descending Ordering object.