(a, b)
| 93 | }; |
| 94 | |
| 95 | export const metaSortKeySort: SortFunction<Pick<SortableModel, '_id' | 'metaSortKey'>> = (a, b) => { |
| 96 | if (a.metaSortKey === b.metaSortKey) { |
| 97 | return a._id > b._id ? -1 : 1; |
| 98 | } |
| 99 | |
| 100 | return a.metaSortKey < b.metaSortKey ? -1 : 1; |
| 101 | }; |
| 102 | |
| 103 | export const ascendingNumberSort: SortFunction<number> = (a, b) => { |
| 104 | return a < b ? -1 : 1; |
no outgoing calls
no test coverage detected