aboutsummaryrefslogtreecommitdiff
path: root/modules/stats.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-26 23:24:43 +0000
committerGravatar jesopo2018-12-26 23:24:43 +0000
commitb8b0adb81171f3ecb6cf1390d91be9422ea32376 (patch)
tree963f384cdf7cd12eb2a579b5d5e7243b53bad4fb /modules/stats.py
parentSort user nicknames on /api/server (stats.py) (diff)
signature
Sort nicknames case-insensitively (stats.py)
Diffstat (limited to 'modules/stats.py')
-rw-r--r--modules/stats.py3
1 files changed, 2 insertions, 1 deletions
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