CBLQuerySortOrder

@interface CBLQuerySortOrder : CBLQueryOrderBy

CBLQuerySortOrder is a subclass of the CBLQueryOrderBy that allows to create an ascending or a descending CBLQueryOrderBy instance.

  • Create an ascending CBLQueryOrderBy instance. - returns: an ascending CBLQueryOrderBy instance.

    Declaration

    Objective-C

    - (nonnull CBLQueryOrderBy *)ascending;

    Swift

    func ascending() -> CBLQueryOrderBy

    Return Value

    an ascending CBLQueryOrderBy instance.

  • Create a descending CBLQueryOrderBy instance. - returns: a descending CBLQueryOrderBy instance.

    Declaration

    Objective-C

    - (nonnull CBLQueryOrderBy *)descending;

    Swift

    func descending() -> CBLQueryOrderBy

    Return Value

    a descending CBLQueryOrderBy instance.

  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;