Ordering

public class Ordering

An Ordering represents a single ordering component in the query ORDER BY clause.

  • Create an Ordering instance with the given property name.

    Declaration

    Swift

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

    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: Expression) -> SortOrder

    Parameters

    expression

    The Expression object.

    Return Value

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