Method SortBy
SortBy<TResult>(IAggregateFluent<TResult>, Expression<Func<TResult, object>>)
Appends an ascending sort stage to the pipeline.
public static IOrderedAggregateFluent<TResult> SortBy<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.