From b8b0adb81171f3ecb6cf1390d91be9422ea32376 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Dec 2018 23:24:43 +0000 Subject: [PATCH] Sort nicknames case-insensitively (stats.py) --- modules/stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/stats.py b/modules/stats.py index 6a971435..e6464601 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -83,7 +83,8 @@ class Module(ModuleManager.BaseModule): def _channel_stats(self, channel): return { - "users": sorted([user.nickname for user in channel.users]), + "users": sorted([user.nickname for user in channel.users], + key=lambda nickname: nickname.lower()), "topic": channel.topic, "topic-set-at": channel.topic_time, "topic-set-by": channel.topic_setter_nickname