This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Trying to sort numbers as numeric fields rather than text


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]