UNPKG

@bitblit/ratchet-common

Version:

Common tools for general use

8 lines (7 loc) 476 B
export declare class SortRatchet { private constructor(); static sortNullToTop<T>(a: T, b: T, bothNonNullSort: (c: T, d: T) => number): number; static sortNullToBottom<T>(a: T, b: T, bothNonNullSort: (c: T, d: T) => number): number; static nullSafeSort<T>(a: T, b: T, nullsOnTop: boolean, bothNonNullSort: (c: T, d: T) => number): number; static sortNumericStringsAsNumbers(a: string | number, b: string | number, sortNonNumbersToTop?: boolean): number; }