3475: Sort temple names on LDS Editor

svn: r14881
This commit is contained in:
Doug Blank 2010-03-20 14:30:35 +00:00
parent bbf2bfe654
commit 0b9baf268a

View File

@ -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):
"""