From ad6624ce02a3d9fc1bcbf57df439d4709ab6368c Mon Sep 17 00:00:00 2001 From: Grey Himmel Date: Sun, 25 Aug 2019 20:25:37 -0400 Subject: [PATCH] Order members regardless of name case Add `toLower()` method to the sorting used in system lists, so members are ordered regardless of if the first letter of their name is upper or lowercase --- PluralKit.Bot/Commands/SystemCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/SystemCommands.cs b/PluralKit.Bot/Commands/SystemCommands.cs index e77fc485..71af6a6c 100644 --- a/PluralKit.Bot/Commands/SystemCommands.cs +++ b/PluralKit.Bot/Commands/SystemCommands.cs @@ -154,7 +154,7 @@ namespace PluralKit.Bot.Commands var members = await Members.GetBySystem(system); var embedTitle = system.Name != null ? $"Members of {system.Name} (`{system.Hid}`)" : $"Members of `{system.Hid}`"; await Context.Paginate( - members.OrderBy(m => m.Name).ToList(), + members.OrderBy(m => m.Name.toLower()).ToList(), 25, embedTitle, (eb, ms) => eb.Description = string.Join("\n", ms.Select((m) => { @@ -328,4 +328,4 @@ namespace PluralKit.Bot.Commands return res.IsSuccess ? res.BestMatch as PKSystem : null; } } -} \ No newline at end of file +}