natural sort for theme in edit song form

This commit is contained in:
Chris Hill 2016-04-17 22:41:29 +01:00
parent 2dd3cdc5ea
commit a38daf9779
1 changed files with 1 additions and 0 deletions

View File

@ -384,6 +384,7 @@ class EditSongForm(QtWidgets.QDialog, Ui_EditSongDialog, RegistryProperties):
self.theme_combo_box.clear()
self.theme_combo_box.addItem('')
self.themes = theme_list
self.themes.sort(key=lambda theme: get_natural_key(theme))
self.theme_combo_box.addItems(theme_list)
set_case_insensitive_completer(self.themes, self.theme_combo_box)