UNPKG

opt-table

Version:

A Responsive and Customizable Rich Table

6 lines (5 loc) 280 B
type Order = "asc" | "desc"; type Comparator<T> = (a: T, b: T) => number; export declare function getComparator<T>(order: Order, orderBy: keyof T): Comparator<T>; export declare function stableSort<T>(array: readonly T[], comparator: (a: T, b: T) => number): T[]; export {};