diff -r d6ad28f5d85c -r df49ba5a3103 E5XML/ProjectWriter.py --- a/E5XML/ProjectWriter.py Mon Sep 05 19:21:16 2011 +0200 +++ b/E5XML/ProjectWriter.py Mon Sep 05 19:30:37 2011 +0200 @@ -161,7 +161,7 @@ # do the filetype associations self.writeStartElement("FiletypeAssociations") - for pattern, filetype in list(self.pdata["FILETYPES"].items()): + for pattern, filetype in sorted(self.pdata["FILETYPES"].items()): self.writeEmptyElement("FiletypeAssociation") self.writeAttribute("pattern", pattern) self.writeAttribute("type", filetype) @@ -170,7 +170,7 @@ # do the lexer associations if self.pdata["LEXERASSOCS"]: self.writeStartElement("LexerAssociations") - for pattern, lexer in list(self.pdata["LEXERASSOCS"].items()): + for pattern, lexer in sorted(self.pdata["LEXERASSOCS"].items()): self.writeEmptyElement("LexerAssociation") self.writeAttribute("pattern", pattern) self.writeAttribute("lexer", lexer)