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()