(
label: string,
property: string,
comparator?: (a: number | string, b: number | string) => number,
)
| 41 | #comparator: ((a: number | string, b: number | string) => number) | undefined; |
| 42 | |
| 43 | public constructor( |
| 44 | label: string, |
| 45 | property: string, |
| 46 | comparator?: (a: number | string, b: number | string) => number, |
| 47 | ) { |
| 48 | this.label = label; |
| 49 | this.property = property; |
| 50 | this.#comparator = comparator; |
| 51 | } |
| 52 | |
| 53 | #compare(a: number | string, b: number | string): number { |
| 54 | if (this.#comparator) { |
nothing calls this directly
no outgoing calls
no test coverage detected