From 4e7ccfe25a751402738835859882e161b028ba81 Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 9 Mar 2019 12:57:11 +0100 Subject: [PATCH] Make member name sorting case-insensitive --- src/pluralkit/bot/commands/system_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/system_commands.py b/src/pluralkit/bot/commands/system_commands.py index 479478e0..d3fc4ca3 100644 --- a/src/pluralkit/bot/commands/system_commands.py +++ b/src/pluralkit/bot/commands/system_commands.py @@ -362,7 +362,7 @@ async def system_frontpercent(ctx: CommandContext, system: System): await ctx.reply(embed=embed) async def system_list(ctx: CommandContext, system: System): - all_members = sorted(await system.get_members(ctx.conn), key=lambda m: m.name) + all_members = sorted(await system.get_members(ctx.conn), key=lambda m: m.name.lower()) page_size = 5 if len(all_members) <= page_size: # If we have less than 10 members, don't bother paginating