Stable order by display name, tie-broken by id, for inventory listings.
(a: { name: string; id: string }, b: { name: string; id: string })
| 102 | |
| 103 | /** Stable order by display name, tie-broken by id, for inventory listings. */ |
| 104 | function byNameThenId(a: { name: string; id: string }, b: { name: string; id: string }): number { |
| 105 | return stableCompare(a.name, b.name) || stableCompare(a.id, b.id) |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Pure formatting: build WORKSPACE.md content from pre-fetched data. |
nothing calls this directly
no test coverage detected