diff options
-rw-r--r-- | todo/gui/tags/list.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/todo/gui/tags/list.py b/todo/gui/tags/list.py index d0374ed..857b6ff 100644 --- a/todo/gui/tags/list.py +++ b/todo/gui/tags/list.py @@ -30,7 +30,7 @@ def widget(parent, init_tags: List[int]) -> Tuple[QtWidgets.QWidget, SelectionSi list_widget.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) layout.addWidget(list_widget) - tags = todo.db.tags.get(todo.database.cursor()) + tags = sorted(todo.db.tags.get(todo.database.cursor()), key=lambda t: t.name) for tag in tags: item = QtWidgets.QListWidgetItem(tag.name) |