Use culture-invariant comparisons when sorting member list

This commit is contained in:
Ske 2019-12-24 01:09:48 +01:00
parent 750aa61d62
commit 441867f1cb

View File

@ -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<PKMember>(
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<PKMember>(
members.OrderBy(m => m.Name.ToLower()).ToList(),
members.OrderBy(m => m.Name, StringComparer.InvariantCultureIgnoreCase).ToList(),
5,
embedTitle,
(eb, ms) => {