title: Sort nodes in XML using XSLT
body: <p>I have an XSL variable <code>matchedNodes</code> which holds XML data. Which means </p>
  
  <pre><code>   &lt;xsl:copy-of select="$matchedNodes"/&gt;
  </code></pre>
  
  <p>will produce an XML like this</p>
  
  <pre><code>    &lt;home name="f"&gt;
    &lt;standardpage&gt;
      &lt;id text="a1"&gt;&lt;/id&gt;
    &lt;/standardpage&gt;
    &lt;searfchpage&gt;
      &lt;id text="a2"&gt;&lt;/id&gt;
    &lt;/searfchpage&gt;
    &lt;searfchpage&gt;
      &lt;id text="a3"&gt;&lt;/id&gt;
    &lt;/searfchpage&gt;
  &lt;/home&gt;
  </code></pre>
  
  <p>I want to sort this XML so that <code>searfchpage</code> nodes always comes first..Is there any way to do this?</p>