CBLQuerySortOrder

@interface CBLQuerySortOrder : CBLQueryOrdering

CBLQuerySortOrder allows to specify the ordering direction which is an ascending or a descending order

  • Create an ascending CBLQueryOrdering instance.

    Declaration

    Objective-C

    - (nonnull CBLQueryOrdering *)ascending;

    Swift

    func ascending() -> CBLQueryOrdering

    Return Value

    An ascending CBLQueryOrdering instance.

  • Create a descending CBLQueryOrdering instance.

    Declaration

    Objective-C

    - (nonnull CBLQueryOrdering *)descending;

    Swift

    func descending() -> CBLQueryOrdering

    Return Value

    A descending CBLQueryOrdering instance.

  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;