Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Natural sorting algorithm Natural sorting algorithmTo: NULL Date: 5/25/2009 7:46:00 AM Hello,
We have some xml with a structure like :
<values-group>
<value>
<name>M_AB1</name>
...
</value>
<value>
<name>M_AB10</name>
...
</value>
<value>
<name>M_AB2</name>
...
</value>
<value>
<name>M_AB3</name>
...
</value>
<value>
<name>M_AB6</name>
...
</value>
<value>
<name>M_AB9</name>
...
</value>
...
We want to sort the constants in the processing in natural order (in
alphabetical order but with the numbers ordered right, M_AB9 comes before
M_AB10). With the basic sorting, all we can get is alphabetical sorting, but
the numbers are sorted character by character.
Is there anything we can do ?
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
