summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 374cdc4f..7df200b0 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2390,6 +2390,17 @@ class MucListTab(Tab):
self.list_header.refresh()
curses.doupdate()
+ def sort_by(self):
+ if self.list_header.get_order():
+ self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=False)
+ self.list_header.set_order(False)
+ self.list_header.refresh()
+ else:
+ self.listview.sort_by_column(col_name=self.list_header.get_sel_column(),asc=True)
+ self.list_header.set_order(True)
+ self.list_header.refresh()
+ curses.doupdate()
+
def join_selected(self):
row = self.listview.get_selected_row()
if not row: