Sort the citation handles to keep the files idempotent (compare easily)

svn: r20098
This commit is contained in:
Doug Blank 2012-07-27 04:27:22 +00:00
parent 08a00f49cd
commit e5ebd81b2a

View File

@ -285,7 +285,7 @@ class GrampsXmlWriter(UpdateCallback):
if citation_len > 0:
self.g.write(" <citations>\n")
for handle in self.db.get_citation_handles():
for handle in sorted(self.db.get_citation_handles()):
citation = self.db.get_citation_from_handle(handle)
self.write_citation(citation,2)
self.update()