import { IterableX } from '../../iterable/iterablex' ; import { orderBy , orderByDescending , OrderedIterableX } from '../../iterable/operators/orderby' ; import { thenBy as _thenBy , thenByDescending as _thenByDescending } from '../../iterable/operators/orderby' ; ignore export function orderByProto < TKey , TSource > ( this , keySelector , comparer ? ) { return orderBy < TKey , TSource > ( keySelector , comparer ) ( this ) ; } ignore export function orderByDescendingProto < TKey , TSource > ( this , keySelector , comparer ? ) { return orderByDescending < TKey , TSource > ( keySelector , comparer ) ( this ) ; } IterableX . prototype . orderBy = orderByProto ; IterableX . prototype . orderByDescending = orderByDescendingProto ; export declare namespace iterable { let thenBy ; let thenByDescending ; } declare module '../../iterable/iterablex' { interface IterableX < T > { orderBy : typeof orderByProto ; orderByDescending : typeof orderByDescendingProto ; } }