<xsl:template match='callEvent/response/interaction_list'>
<xsl:apply-templates>
<xsl:sort select='./interaction/timestamp'
order='descending'
data-type='number' />
</xsl:apply-templates>
</xsl:template>
<!-- timestamp NODE Template -->
<xsl:template match="timestamp">
<!-- Pull the pieces apart -->
<xsl:variable name='datetime' select='.' />
<xsl:variable name='year' select='substring( $datetime, 0 , 5 )' />
<xsl:variable name='month' select='substring( $datetime, 6 , 2 )' />
<xsl:variable name='day' select='substring( $datetime, 9 , 2 )' />
<td valign='top'>
<!-- put the date together in American order -->
<xsl:value-of select="concat($month, '/', $day, '/', $year )" />
<!-- Seperate the date and Time -->
-
<!-- Display the Time -->
<xsl:value-of select='substring( $datetime, 12 , 9 )' />
</td>
</xsl:template>
Source: xsl sort datetime – RE: Q on.