Ordering

public final class Ordering

Ordering factory.

  • Create an Ordering instance with the given property name.

    Declaration

    Swift

    public static func property(_ property: String) -> QuerySortOrder

    Parameters

    property

    The property name.

    Return Value

    The SortOrder object used for specifying the sort order, ascending or descending order.

  • Create an Ordering instance with the given expression.

    Declaration

    Swift

    public static func expression(_ expression: ExpressionProtocol) -> QuerySortOrder

    Parameters

    expression

    The Expression object.

    Return Value

    The SortOrder object used for specifying the sort order, ascending or descending order.