diff options
author | mathieui <mathieui@mathieui.net> | 2013-05-15 12:56:24 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-05-15 12:56:24 +0200 |
commit | 58174d1bf16cede6e264f7a07d3414554dd7ed9b (patch) | |
tree | 7842c5598ab1fd4a7bcb9076d01d6d551231715a /src | |
parent | 9de322bea3fe5e9431fd1a5aeef8841ef27b19c1 (diff) | |
download | poezio-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.py | 4 |
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': |