From 441867f1cb21bb9f58cedf9c7575e56e3de4429b Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 24 Dec 2019 01:09:48 +0100 Subject: [PATCH] Use culture-invariant comparisons when sorting member list --- 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 ac4094c0..95ce1f51 100644 --- a/PluralKit.Bot/Commands/SystemCommands.cs +++ b/PluralKit.Bot/Commands/SystemCommands.cs @@ -130,7 +130,7 @@ namespace PluralKit.Bot.Commands var members = await _data.GetSystemMembers(system); var embedTitle = system.Name != null ? $"Members of {system.Name.SanitizeMentions()} (`{system.Hid}`)" : $"Members of `{system.Hid}`"; await ctx.Paginate( - members.OrderBy(m => m.Name.ToLower()).ToList(), + members.OrderBy(m => m.Name, StringComparer.InvariantCultureIgnoreCase).ToList(), 25, embedTitle, (eb, ms) => eb.Description = string.Join("\n", ms.Select((m) => { @@ -146,7 +146,7 @@ namespace PluralKit.Bot.Commands var members = await _data.GetSystemMembers(system); var embedTitle = system.Name != null ? $"Members of {system.Name} (`{system.Hid}`)" : $"Members of `{system.Hid}`"; await ctx.Paginate( - members.OrderBy(m => m.Name.ToLower()).ToList(), + members.OrderBy(m => m.Name, StringComparer.InvariantCultureIgnoreCase).ToList(), 5, embedTitle, (eb, ms) => {