(
a: { position: number },
b: { position: number }
)
| 2 | import { versions, current } from "consts"; |
| 3 | |
| 4 | export function sortByPosition( |
| 5 | a: { position: number }, |
| 6 | b: { position: number } |
| 7 | ): number { |
| 8 | return a.position - b.position; |
| 9 | } |
| 10 | |
| 11 | export function sortByTitle(a: { title: string }, b: { title: string }) { |
| 12 | if (a.title > b.title) return 1; |
nothing calls this directly
no outgoing calls
no test coverage detected