From ba1b75e9fd2522a434a14b51ed3ab88e0ada2245 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Dec 2021 07:29:41 +0530 Subject: [PATCH] Sort the names in the manage file excludes list --- src/calibre/gui2/tweak_book/spell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index 03eb89fe16..c8f63bd3ed 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -934,7 +934,8 @@ class ManageExcludedFiles(Dialog): self.files = QListWidget(self) self.files.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection) cc = current_container() - for name, mt in cc.mime_map.items(): + for name in sorted(cc.mime_map): + mt = cc.mime_map[name] if mt in OEB_DOCS or mt in (NCX_MIME, OPF_MIME): i = QListWidgetItem(self.files) i.setText(name)