OrderBy
public class OrderBy: Query
An OrderBy represents a query ORDER BY clause by sepecifying properties or expressions t hat the result rows should be sorted by. A CBLQueryOrderBy can be construct as a single CBLQuerySortOrder instance with a propery name or an expression instance or as a chain of multiple CBLQueryOrderBy instances.
-
Create an Order By instance with a given property name.
Declaration
Swift
public static func property(_ property: String) -> SortOrder
-
Create an Order By instance with a given expression.
Declaration
Swift
public static func expression(_ expression: Expression) -> SortOrder