diff --git a/src/LdsUtils.py b/src/LdsUtils.py index 971897ae7..80919fa23 100644 --- a/src/LdsUtils.py +++ b/src/LdsUtils.py @@ -91,7 +91,9 @@ class LdsTemples(object): """ returns a list of temple codes, temple name tuples """ - return [(code, name) for name, code in self.__temple_codes.iteritems()] + return sorted([(code, name) for name, code + in self.__temple_codes.iteritems()], + key=lambda v: v[1]) def __start_element(self, tag, attrs): """