Index: grit/format/policy_templates/writers/xml_formatted_writer.py |
=================================================================== |
--- grit/format/policy_templates/writers/xml_formatted_writer.py (revision 181) |
+++ grit/format/policy_templates/writers/xml_formatted_writer.py (working copy) |
@@ -31,7 +31,7 @@ |
doc = parent.ownerDocument |
element = doc.createElement(name) |
- for key, value in attrs.iteritems(): |
+ for key, value in sorted(attrs.iteritems()): |
element.setAttribute(key, value) |
if text: |
element.appendChild(doc.createTextNode(text)) |