public SortedAggregator(IAggregateExpression keySelector, SortDirection sortDirection) { _keySelector = keySelector; var comparer = CreateComparer(sortDirection); _sortedFactCollection = new SortedFactCollection <TSource, TKey>(comparer); }
public MultiKeySortedAggregator(IEnumerable <SortCondition> sortConditions) { _sortConditions = sortConditions.ToArray(); var comparer = CreateComparer(_sortConditions); _sortedFactCollection = new SortedFactCollection <TSource, object[]>(comparer); }