Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

fix(ui): sort containers alphabetically within systems

henrygda0dc19eacf69
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 f6c75cba2..2bec38b70 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<ContainerRecord>[] = [
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 }) => <HeaderButton column={column} name={t`System`} Icon={ServerIcon} />,
cell: ({ getValue }) => {