diff options
| author | 2018-12-26 23:24:43 +0000 | |
|---|---|---|
| committer | 2018-12-26 23:24:43 +0000 | |
| commit | b8b0adb81171f3ecb6cf1390d91be9422ea32376 (patch) | |
| tree | 963f384cdf7cd12eb2a579b5d5e7243b53bad4fb /modules/stats.py | |
| parent | Sort 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.py | 3 |
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 |
