(order: Map<string, number>, id: string)
| 287 | } |
| 288 | |
| 289 | function blockerOrder(order: Map<string, number>, id: string) { |
| 290 | return order.get(id) ?? Number.MAX_SAFE_INTEGER |
| 291 | } |
| 292 | |
| 293 | function firstByOrder<T extends { id: string }>(left: T[], right: T[], order: Map<string, number>) { |
| 294 | return [...left, ...right].sort((a, b) => { |