summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-05-15 12:56:24 +0200
committermathieui <mathieui@mathieui.net>2013-05-15 12:56:24 +0200
commit58174d1bf16cede6e264f7a07d3414554dd7ed9b (patch)
tree7842c5598ab1fd4a7bcb9076d01d6d551231715a /src
parent9de322bea3fe5e9431fd1a5aeef8841ef27b19c1 (diff)
downloadpoezio-58174d1bf16cede6e264f7a07d3414554dd7ed9b.tar.gz
poezio-58174d1bf16cede6e264f7a07d3414554dd7ed9b.tar.bz2
poezio-58174d1bf16cede6e264f7a07d3414554dd7ed9b.tar.xz
poezio-58174d1bf16cede6e264f7a07d3414554dd7ed9b.zip
Sort users in /names
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index b25f5f24..a8d2a3cf 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1094,7 +1094,9 @@ class MucTab(ChatTab):
'none': get_theme().CHAR_AFFILIATION_NONE,
}
- for user in self.users:
+ users = self.users[:]
+ users.sort(key=lambda x: x.nick.lower())
+ for user in users:
if user.role == 'visitor':
visitors.append((user, aff[user.affiliation]))
elif user.role == 'participant':