Class Ordering
A factory class for generating ISortOrder objects
Inheritance
System.Object
    Ordering
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public static class Ordering
  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  |