From 1e0ce31ffecefba05d0cbe8152d936215cfe94c7 Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 25 Aug 2020 18:43:52 +0200 Subject: [PATCH] Order groups alphabetically by name --- PluralKit.Bot/Commands/Groups.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PluralKit.Bot/Commands/Groups.cs b/PluralKit.Bot/Commands/Groups.cs index e4471cba..ecfb9eb7 100644 --- a/PluralKit.Bot/Commands/Groups.cs +++ b/PluralKit.Bot/Commands/Groups.cs @@ -247,6 +247,7 @@ namespace PluralKit.Bot var groups = (await conn.QueryGroupList(system.Id)) .Where(g => g.Visibility.CanAccess(pctx)) + .OrderBy(g => g.Name, StringComparer.InvariantCultureIgnoreCase) .ToList(); if (groups.Count == 0)