diff options
author | PS Le Stang <ps@lestang.fr> | 2019-04-13 23:59:46 +0200 |
---|---|---|
committer | PS Le Stang <ps@lestang.fr> | 2019-04-13 23:59:46 +0200 |
commit | 0d39b5296241d2f31b47c6f9b90d33e34dd6b765 (patch) | |
tree | 84b1d13e5866202f944ca0c2b7e778b57ae3be09 | |
parent | bddca0c62c2e564855c90c2f5029f2746aafb4e7 (diff) | |
download | poezio-0d39b5296241d2f31b47c6f9b90d33e34dd6b765.tar.gz poezio-0d39b5296241d2f31b47c6f9b90d33e34dd6b765.tar.bz2 poezio-0d39b5296241d2f31b47c6f9b90d33e34dd6b765.tar.xz poezio-0d39b5296241d2f31b47c6f9b90d33e34dd6b765.zip |
Sort chatrooms by name
-rw-r--r-- | poezio/tabs/muclisttab.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poezio/tabs/muclisttab.py b/poezio/tabs/muclisttab.py index aac25787..4c1e492f 100644 --- a/poezio/tabs/muclisttab.py +++ b/poezio/tabs/muclisttab.py @@ -60,6 +60,7 @@ class MucListTab(ListTab): items = [(item[0].split('@')[0], item[0], item[2] or '', '') for item in get_items()] + items = sorted(items, key=lambda item: item[0]) self.listview.set_lines(items) self.info_header.message = 'Chatroom list on server %s' % self.name if self.core.tabs.current_tab is self: |