From a1da3e1386ed1dbc605addc701fad54ed81f9e15 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 30 Aug 2020 17:03:28 +0200 Subject: [PATCH] Sort groups on the member card alphabetically --- PluralKit.Bot/Services/EmbedService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index da37da5b..4da92f26 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -109,6 +109,7 @@ namespace PluralKit.Bot { var groups = await _repo.GetMemberGroups(conn, member.Id) .Where(g => g.Visibility.CanAccess(ctx)) + .OrderBy(g => g.Name, StringComparer.InvariantCultureIgnoreCase) .ToListAsync(); var eb = new DiscordEmbedBuilder()