[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] sorting a table based on first column which contains both numbers and words


Subject: Re: [xsl] sorting a table based on first column which contains both numbers and words
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 18 Dec 2009 13:42:10 GMT

> But I wanted numbers first and then strings.

in that case:


 <xsl:sort select="- number(td)" order="descending" data-type="number"/>
 <xsl:sort select="td" data-type="text"/>  

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


Current Thread