Class Ordering
A factory class for generating ISortOrder objects
Inheritance
System.Object
Ordering
Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class Ordering : object
Methods
| Improve this Doc View SourceExpression(IExpression)
Creates an object that will sort based on the given expression
Declaration
public static ISortOrder Expression(IExpression expression)
Parameters
Type | Name | Description |
---|---|---|
IExpression | expression | The expression to use when sorting |
Returns
Type | Description |
---|---|
ISortOrder | The object that will perform the sort |
Property(String)
Creates an object that will sort based on the value in the given property path
Declaration
public static ISortOrder Property(string property)
Parameters
Type | Name | Description |
---|---|---|
System.String | property | The path of the property whose value will be used to sort the results of the query |
Returns
Type | Description |
---|---|
ISortOrder | The object that will perform the sort |