title: problem in sorting xml by date<xsl:sort select=""/>
body: <p>I am trying to sort my xml by date  but its not working my xml and xsl r like this</p>
  
  <pre><code>&lt;xsl:template match="/"&gt;
      &lt;xsl:for-each select="news/item"&gt;
                          &lt;xsl:sort select="date1" order="descending" /&gt;                                     
  
                            &lt;xsl:value-of select="date1"/&gt;                                
  
                    &lt;/xsl:for-each&gt; 
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>MYXML</p>
  
  <pre><code>&lt;news&gt;
   &lt;item&gt;
  &lt;date1&gt;January 1, 2010&lt;/date1&gt;
   &lt;/item&gt;
   &lt;item&gt;
    &lt;date1&gt;November 29, 2009&lt;/date1&gt;
  &lt;/news&gt;
  
  
           Its displaying the result but not in sorted way..
  </code></pre>