This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Trying to sort numbers as numeric fields rather than text
- To: XSL <xsl-list at mulberrytech dot com>
- Subject: Trying to sort numbers as numeric fields rather than text
- From: desimonp at iname dot com
- Date: Tue, 10 Oct 2000 22:12:40 -0400 (EDT)
- Reply-To: xsl-list at mulberrytech dot com
I have this xsl line for my order-by
<xsl:for-each select="Row" order-by="NumField">
The Num field has records with values of :23,111,104.
When it sorts these records, they appear in this order:
104
111
23
How do I get them to sort like this:
23
104
111
Also, the HTM page is changing the sort value via JScript using this
command:
objSortOrder = xslPeopleList.XMLDocument.selectSingleNode(//@order-by);
objSortOrder.value = "@fullName";
If there is an attribute for @order-by, I will need to know how to handle
that in JScript.
Thanks
Peter
++++++++++++++++++++++++++++++++++++++++++++++
Peter DeSimone
Email Address: desimonp@iname.com
New Email Address: peter@desimone.com
Web Address: Http://www.bigfoot.com/~desimonp
New Web Address: http://www.peter.desimone.com
ICQ: 20177836
AOL Instant Messenger: Peterdesi1
++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------
Get free personalized email at http://www.iname.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list