Sort language correctly

This commit is contained in:
lordwelch 2019-08-16 13:16:25 -07:00
parent 2891209b4e
commit 3606cbd0f2

View File

@ -1454,7 +1454,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