| Index: grit/format/policy_templates/writers/xml_formatted_writer.py
|
| diff --git a/grit/format/policy_templates/writers/xml_formatted_writer.py b/grit/format/policy_templates/writers/xml_formatted_writer.py
|
| index dad3717bfdc1140b55f2d8ad56dec1e8895a4210..5917fb447ea5df569b1dc6c62537bcff79798f79 100644
|
| --- a/grit/format/policy_templates/writers/xml_formatted_writer.py
|
| +++ b/grit/format/policy_templates/writers/xml_formatted_writer.py
|
| @@ -31,7 +31,7 @@ class XMLFormattedWriter(template_writer.TemplateWriter):
|
|
|
| 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))
|
|
|