Subject: [xsl] Sorting alpha numeric values

Subject: Subject: [xsl] Sorting alpha numeric values
From: "Hugh Dixon" <hugh.dixon@xxxxxxxxxxxxxx>
Date: Fri, 9 May 2003 18:03:03 +1000
Sorry, I trivialized my sample.  Will try again.

I want to sort a data set:
<Root>
<Elem val = "A1"/>
<Elem val = "A21Value"/>
<Elem val = "A21Fred"/>
<Elem val = "A3George"/>
<Elem val = "B3Value"/>
<Elem val = "B10Valuf"/>
</Root>

Into:
A1
A3George
A21Fred
A21Value
B3Value
B10Valuf

Sorting by the number and alpha prefix is essential, sorting by any
suffix of numbers and alphas would be 'icing on the cake'.
Thanks again

Hugh Dixon

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread