diff --git a/dashboard/src/components/list/functions.ts b/dashboard/src/components/list/functions.ts index 8753d945..7786feb9 100644 --- a/dashboard/src/components/list/functions.ts +++ b/dashboard/src/components/list/functions.ts @@ -126,6 +126,8 @@ function sort(list: T[], options: ListOptions): T[] { let aa = Number("0x" + a.color); let bb = Number("0x" + b.color); + if (a.color === b.color) return a.name.localeCompare(b.name); + if (a.color === null) return 1; if (b.color === null) return -1;