From e5ebd81b2ad3d6bee186fb2b67c93c1262d3e9ea Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 27 Jul 2012 04:27:22 +0000 Subject: [PATCH] Sort the citation handles to keep the files idempotent (compare easily) svn: r20098 --- src/plugins/export/exportxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/export/exportxml.py b/src/plugins/export/exportxml.py index d52dd3f48..94c1afd0b 100644 --- a/src/plugins/export/exportxml.py +++ b/src/plugins/export/exportxml.py @@ -285,7 +285,7 @@ class GrampsXmlWriter(UpdateCallback): if citation_len > 0: self.g.write(" \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()