(id: string)
| 45 | .sort(sortBy(ownerOrder)); |
| 46 | const hideFirst = owner.length === 0; |
| 47 | const isPrimary = (id: string) => |
| 48 | primaryOrder.includes(id) && (hideFirst || id !== 'hide'); |
| 49 | const primary = options |
| 50 | .filter((option) => isPrimary(option.id ?? '')) |
| 51 | .sort(sortBy(primaryOrder)); |