Order groups alphabetically by name

This commit is contained in:
Ske 2020-08-25 18:43:52 +02:00
parent 10d6968734
commit 1e0ce31ffe

View File

@ -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)