put style names in alphabetical order

svn: r19628
This commit is contained in:
Paul Franklin 2012-05-22 22:10:12 +00:00
parent f471592d68
commit 7af7459eb2
2 changed files with 3 additions and 2 deletions

View File

@ -152,9 +152,10 @@ class StyleSheetList(object):
xml_file.write("<?xml version=\"1.0\"?>\n")
xml_file.write('<stylelist>\n')
for name, sheet in self.map.iteritems():
for name in sorted(self.map.keys()): # enable diff of archived copies
if name == "default":
continue
sheet = self.map[name]
xml_file.write('<sheet name="%s">\n' % escxml(name))
for p_name in sheet.get_paragraph_style_names():
# Get variables for substitutions

View File

@ -120,7 +120,7 @@ class StyleListDisplay(object):
self.list.add(["default"])
index = 1
for style in self.sheetlist.get_style_names():
for style in sorted(self.sheetlist.get_style_names()):
if style == "default":
continue
self.list.add([style])