Sorting XSLT rows by number

To sort XSLT rows by number use the attribute data-type with value number e.g.

<xsl:apply-templates select='records/item'>
  <xsl:sort data-type="number" select="@id" order="descending"/>
</xsl:apply-templates>

Resources