=== modified file 'xl/gui/editor.py' --- xl/gui/editor.py 2007-11-21 18:59:33 +0000 +++ xl/gui/editor.py 2008-01-11 06:20:33 +0000 @@ -789,7 +789,9 @@ """ Place the tags in the combobox """ - for tag in TAG_STRINGS.values(): + tags = TAG_STRINGS.values() + tags.sort() + for tag in tags: self.combo.append_text(tag) def on_entry_changed(self, entry, *args): @@ -805,7 +807,10 @@ """ Returns the tag that the user has selected """ - return TAG_STRINGS.keys()[self.combo.get_active()] + combotext = self.combo.get_active_text() + for key in TAG_STRINGS.keys(): + if TAG_STRINGS[key] == combotext: + return key def get_value(self): """