(value?: string | null)
| 61 | }; |
| 62 | |
| 63 | const parseCreatedAt = (value?: string | null): number => { |
| 64 | if (!value) return 0; |
| 65 | const timestamp = Date.parse(value); |
| 66 | return Number.isNaN(timestamp) ? 0 : timestamp; |
| 67 | }; |
| 68 | |
| 69 | const createTreeItemComparator = (ascending: boolean) => { |
| 70 | const direction = ascending ? 1 : -1; |
no outgoing calls
no test coverage detected