Method Ascending
Ascending<TDocument>(SortDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing sort with an ascending field.
public static SortDefinition<TDocument> Ascending<TDocument>(this SortDefinition<TDocument> sort, FieldDefinition<TDocument> field)
Parameters
sort
SortDefinition<TDocument>The sort.
field
FieldDefinition<TDocument>The field.
Returns
- SortDefinition<TDocument>
A combined sort.
Type Parameters
TDocument
The type of the document.
Ascending<TDocument>(SortDefinition<TDocument>, Expression<Func<TDocument, object>>)
Combines an existing sort with an ascending field.
public static SortDefinition<TDocument> Ascending<TDocument>(this SortDefinition<TDocument> sort, Expression<Func<TDocument, object>> field)
Parameters
sort
SortDefinition<TDocument>The sort.
field
Expression<Func<TDocument, object>>The field.
Returns
- SortDefinition<TDocument>
A combined sort.
Type Parameters
TDocument
The type of the document.