CBLQueryOrdering

@interface CBLQueryOrdering : NSObject

A CBLQueryOrdering represents a single ordering component in the query ORDER BY clause.

  • Create a sort order instance with a given property name.

    Declaration

    Objective-C

    + (nonnull CBLQuerySortOrder *)property:(nonnull NSString *)name;

    Swift

    class func property(_ name: String) -> CBLQuerySortOrder

    Parameters

    name

    A propert name in key path format.

    Return Value

    A sort order instance.

  • Create a sort order instance with a given expression.

    Declaration

    Objective-C

    + (nonnull CBLQuerySortOrder *)expression:
        (nonnull CBLQueryExpression *)expression;

    Swift

    class func expression(_ expression: CBLQueryExpression) -> CBLQuerySortOrder

    Parameters

    expression

    An expression instance.

    Return Value

    A sort order instance.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype) init NS_UNAVAILABLE;