public static IQuery OrderBy <T>(this IQuery query, Expression <Func <T, object> > propertySelector, Order order = default) { query.AddOrderBy(propertySelector.Body.GetMemberInfo(), typeof(T), order); return(query); }