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

Bug Sorting Zeros

Subject: Bug Sorting Zeros
From: "Schwartz, Rechell R, NLCIO" <rrschwartz@xxxxxxx>
Date: Mon, 25 Jun 2001 09:23:28 -0400
 Bug Sorting Zeros
All,

I just tried sorting a list of numbers using Xalan for Java and found that
the value of zero did not sort where I expected
it to. In fact it appears that it was treated as though it was not a number.
Is this a bug in Xalan or is this how zeros are treated
in all XSLT processors? Following is the list that I sorted and the results
of performing 2 sorts:

BEFORE THE SORT: 0,1,2,3,4....52,TOTAL
AFTER THE SORT (ascending order): 0,TOTAL,1,2,3,4....52
AFTER THE SORT (descending order): 52,51,50......3,2,1,0,TOTAL

Also, is there a way to cause non-numerical values to appear after numerical
values, instead of before? Similarly, when sorting
strings is there a way to cause numerical values to appear after all string
values instead of before?


Thanks,
Rechell Schwartz 

P.S. If anyone received this message, I apologize. I am re-sending because I
never received a copy of this message after
I sent it out.


 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.