Re: Sorting with Different Sort Keys
why does Thunderbird always messes with my XSLT like that? It looked much prettier before posting... Here's a new try of the core part:
<xsl:sort select="matches(., '\s*seite', 'i')" order="descending" />
<xsl:sort select="not(matches(., '^\d+$'))" order="ascending" />
<xsl:sort select="replace(., '\D', '')" order="ascending" data-type="number" />
note that technically the last line is semantically equivalent with the last line posted by Michael (and my order="ascending" is redundant):
<xsl:sort select="number(replace(., '[^0-9]', ''))"/>
Cheers, -- Abel
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format