[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

sorting text-number strings?

Subject: sorting text-number strings?
From: Bill Parod <bill-parod@xxxxxxx>
Date: Fri, 14 Apr 2000 09:31:18 -0500
sorting text
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@xxxxxxx
http://charlotte.acns.nwu.edu/parod/


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.