Method SortByDescending
SortByDescending<TResult>(IAggregateFluent<TResult>, Expression<Func<TResult, object>>)
Appends a descending sort stage to the pipeline.
public static IOrderedAggregateFluent<TResult> SortByDescending<TResult>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, object>> field)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
fieldExpression<Func<TResult, object>>The field to sort by.
Returns
- IOrderedAggregateFluent<TResult>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.