Make member name sorting case-insensitive

This commit is contained in:
Ske 2019-03-09 12:57:11 +01:00
parent b5f7bfd91b
commit 4e7ccfe25a

View File

@ -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