diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 257ea0e10..efcea412d 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -917,31 +917,11 @@ QTableView {{ gridline-color: {grid} }} def _onSortChanged(self, idx, ord): type = self.model.activeCols[idx] - noSort = ("question", "answer", "template", "deck", "note", "noteTags") + noSort = ("question", "answer") if type in noSort: - if type == "template": - showInfo( - _( - """\ -This column can't be sorted on, but you can search for individual card types, \ -such as 'card:1'.""" - ) - ) - elif type == "deck": - showInfo( - _( - """\ -This column can't be sorted on, but you can search for specific decks \ -by clicking on one on the left.""" - ) - ) - else: - showInfo( - _( - "Sorting on this column is not supported. Please " - "choose another." - ) - ) + showInfo( + _("Sorting on this column is not supported. Please " "choose another.") + ) type = self.col.conf["sortType"] if self.col.conf["sortType"] != type: self.col.conf["sortType"] = type