This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
sorting text-number strings?
- To: XSL-List at mulberrytech dot com
- Subject: sorting text-number strings?
- From: Bill Parod <bill-parod at nwu dot edu>
- Date: Fri, 14 Apr 2000 09:31:18 -0500
- Reply-To: xsl-list at mulberrytech dot com
I want to sort values of the form:
"title 1, title2, some other name, title 3, ..., title 9, title 10, title 11"
which include both alpha and numeric characters. I would like the sort to
treat alpha characters alphabetically and numeric characters numerically.
<xsl:sort select="." data-type="text"> gives results:
.., title1, title 10, title 11, title 2, title 3...,
<xsl:sort data-type="number"> gives results that aren't alphabetized.
Is there a way to achieve a sort with results?:
title 1, title2, title 3,..., title 9, title 10, title 11
I must be missing something.
Thanks,
Bill Parod
Information Technology
Northwestern University, Evanston, IL. USA
bill-parod@nwu.edu
http://charlotte.acns.nwu.edu/parod/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list