import { EnumerableFactory } from '../utilities/EnumerableFactory'; import { IOrderedEnumerable } from '../types'; import { Comparer } from '../types'; import { applyThenBy } from './applicators/applyThenBy'; export function thenBy( src: () => Generator, ascending: boolean, selector: (item: TSource) => TKey, comparer?: Comparer ): IOrderedEnumerable { return applyThenBy(new EnumerableFactory(), src, ascending, selector, comparer); }