mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix(dashboard): sort by name alphabetically if no theres color
This commit is contained in:
parent
e9f563a1bc
commit
10af7be278
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ function sort<T extends Member|Group>(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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue