Merge pull request #132 from lordwelch/FixLanguageSort

Sort language correctly
This commit is contained in:
Timmy Welch 2021-12-15 23:41:40 -08:00 committed by GitHub
commit ed16199940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1422,7 +1422,7 @@ class TaggerWindow(QtWidgets.QMainWindow):
# Add the entries to the language combobox
self.cbLanguage.addItem("", "")
lang_dict = utils.getLanguageDict()
for key in sorted(lang_dict, key=functools.cmp_to_key(locale.strcoll)):
for key in sorted(lang_dict, key=lang_dict.get):
self.cbLanguage.addItem(lang_dict[key], key)
# Add the entries to the manga combobox