title: SimpleDOM.php - Issues with sortedXPath
body: <p>I have a little problem with the usage of SimpleDOM and sortedXPath.
  Given is the following XML Structure. I want to sort it either by row id, name or birthday.</p>
  
  <pre><code>&lt;table&gt;
    &lt;data&gt;
      &lt;row id="1"&gt;
        &lt;column&gt;Jimmy&lt;/column&gt;
        &lt;column&gt;01/10/1977&lt;/column&gt;
       &lt;/row&gt;
       &lt;row id="3"&gt;
         &lt;column&gt;Johnny&lt;/column&gt;
         &lt;column&gt;04/01/2001&lt;/column&gt;
       &lt;/row&gt;
       &lt;row id="2"&gt;
         &lt;column&gt;Tim&lt;/column&gt;
         &lt;column&gt;13/02/1990&lt;/column&gt;
       &lt;/row&gt;
       &lt;row id="4"&gt;
         &lt;column&gt;Paul&lt;/column&gt;
         &lt;column&gt;13/02/1955&lt;/column&gt;
       &lt;/row&gt;
     &lt;/data&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Sorting by id turned out to be simple by using:</p>
  
  <pre><code>foreach($xmlObject-&gt;data-&gt;sortedXPath('row','@id', SORT_DESC) as $node)
  </code></pre>
  
  <p>so $node contains all rows and i can output them in the correct order. But i'm unable to order by name or date. I have tried:</p>
  
  <pre><code>foreach($xmlObject-&gt;data-&gt;sortedXPath('row','column[0]', SORT_DESC) as $node)
  foreach($xmlObject-&gt;data-&gt;sortedXPath('row/column[0]','.', SORT_ASC) as $node)
  </code></pre>
  
  <p>but this creates either $nodes with just the value of column and in a strange oder or no output at all. Please help i'm stuck here for hours now :(</p>
  
  <p>Regards</p>