Enable sorting of archive table columns (#349) (#361)

This enables column sorting for the table on the archive list page.
However, all columns are sorted by lexical string order. For example,
this means that archives with "52 MB" are ranked greater than "332 MB".

Completes: https://github.com/borgbase/vorta/issues/349
This commit is contained in:
Aidan Pieper 2019-10-01 21:05:40 -07:00 committed by Manuel Riel
parent 6c69f3689e
commit 47739b9663
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class ArchiveTab(ArchiveTabBase, ArchiveTabUI, BackupProfileMixin):
self.archiveTable.setAlternatingRowColors(True) self.archiveTable.setAlternatingRowColors(True)
self.archiveTable.cellDoubleClicked.connect(self.cell_double_clicked) self.archiveTable.cellDoubleClicked.connect(self.cell_double_clicked)
self.archiveTable.itemSelectionChanged.connect(self.update_mount_button_text) self.archiveTable.itemSelectionChanged.connect(self.update_mount_button_text)
self.archiveTable.setSortingEnabled(True)
self.mountButton.clicked.connect(self.mount_action) self.mountButton.clicked.connect(self.mount_action)
self.listButton.clicked.connect(self.list_action) self.listButton.clicked.connect(self.list_action)