/// <summary> /// Sort the documents of resultset in ascending (or descending) order according to a key (support only one OrderBy) /// </summary> public ILiteQueryableAsync <T> OrderBy(BsonExpression keySelector, int order = Query.Ascending) { _wrappedQuery.OrderBy(keySelector, order); return(this); }
public IDataQuery <T> OrderBy <K>(Expression <Func <T, K> > keySelector) => new LiteDataQuery <T>(_queryable.OrderBy(keySelector));