private static CqlQuery <T> AddSort <T, TProperty>(CqlQuery <T> query, Sort sort) { return(sort.SortOrder == ObjectFilterSortOrder.Ascending ? query.OrderBy(CriterionHelper.BuildSort <T, TProperty>(sort)) : query.OrderByDescending(CriterionHelper.BuildSort <T, TProperty>(sort))); }