From 1bb7b750607f155e18711603ca4b24f827fdf310 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 20 Mar 2010 14:31:44 +0000 Subject: [PATCH] 3475: Sort temple names on LDS Editor svn: r14882 --- src/LdsUtils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): """