export type Comparer = (a: T, b: T) => boolean;