title: C#: Sort xml node using attribute value
body: <p>Is there a way we can sort xmlnodes based on attribute values, <strong>consider I can't use linq</strong>. Since I'm using .NET 2.0.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;Root a="1"&gt;
     &lt;I aa="1" b="2"&gt;
     &lt;I aa="5" b="2"&gt;
     &lt;I aa="3" b="2"&gt;
     &lt;I aa="4" b="2"&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Should be like -></p>
  
  <pre><code>&lt;Root a="1"&gt;
      &lt;I aa="1" b="2"&gt;
      &lt;I aa="3" b="2"&gt;
      &lt;I aa="4" b="2"&gt;
      &lt;I aa="5" b="2"&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Please help.</p>