From a0dc19eacf6902d2f6934a3efd7ea7277198c40b Mon Sep 17 00:00:00 2001 From: henrygd Date: Sat, 19 Sep 2026 11:18:17 -0400 Subject: [PATCH] fix(ui): sort containers alphabetically within systems --- .../containers-table/containers-table-columns.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/site/src/components/containers-table/containers-table-columns.tsx b/internal/site/src/components/containers-table/containers-table-columns.tsx index f6c75cba..2bec38b7 100644 --- a/internal/site/src/components/containers-table/containers-table-columns.tsx +++ b/internal/site/src/components/containers-table/containers-table-columns.tsx @@ -59,7 +59,11 @@ export const containerChartCols: ColumnDef[] = [ const allSystems = $allSystemsById.get() const systemNameA = allSystems[a.original.system]?.name ?? "" const systemNameB = allSystems[b.original.system]?.name ?? "" - return systemNameA.localeCompare(systemNameB) + const primary = systemNameA.localeCompare(systemNameB) + if (primary !== 0) { + return primary + } + return a.original.name.localeCompare(b.original.name) }, header: ({ column }) => , cell: ({ getValue }) => {