title: Sorting xml nodes by attributes using xml.dom.minidom
body: <p>I want to sort some nodes of my xml by a specific attribute using xml.dom.minidom? Any help is appreciated.
  From this:</p>
  
  <pre><code>    &lt;Node Name="A" Position = "4"/&gt;
      &lt;Node Name="B" Position = "1"/&gt;
      &lt;Node Name="D" Position = "3"/&gt;
      &lt;Node Name="C" Position = "2"/&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>    &lt;Node Name="B" Position = "1"/&gt;
      &lt;Node Name="C" Position = "2"/&gt;
      &lt;Node Name="D" Position = "3"/&gt;
      &lt;Node Name="A" Position = "4"/&gt;
  </code></pre>
  
  <p>Thanks</p>