(a, b)
| 26 | }; |
| 27 | |
| 28 | export const createdLastSort: SortFunction<{ created: number }> = (a, b) => { |
| 29 | if (a.created === b.created) { |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | return a.created > b.created ? -1 : 1; |
| 34 | }; |
| 35 | |
| 36 | export const descendingModifiedSort: SortFunction<{ lastModifiedTimestamp: number }> = (a, b) => { |
| 37 | if (a.lastModifiedTimestamp === b.lastModifiedTimestamp) { |