mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
Order groups alphabetically by name
This commit is contained in:
parent
10d6968734
commit
1e0ce31ffe
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue