Order groups alphabetically by name
This commit is contained in:
parent
10d6968734
commit
1e0ce31ffe
@ -247,6 +247,7 @@ namespace PluralKit.Bot
|
|||||||
|
|
||||||
var groups = (await conn.QueryGroupList(system.Id))
|
var groups = (await conn.QueryGroupList(system.Id))
|
||||||
.Where(g => g.Visibility.CanAccess(pctx))
|
.Where(g => g.Visibility.CanAccess(pctx))
|
||||||
|
.OrderBy(g => g.Name, StringComparer.InvariantCultureIgnoreCase)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (groups.Count == 0)
|
if (groups.Count == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user