You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/09/25 21:06:43 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/dom NodeSortRecord.java
morten 01/09/25 12:06:43
Modified: java/src/org/apache/xalan/xsltc/dom NodeSortRecord.java
Log:
Fix to make sure all num-numeric values are grouped last in numeric sorts.
PR: bugzilla 3517
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.4 +2 -2 xml-xalan/java/src/org/apache/xalan/xsltc/dom/NodeSortRecord.java
Index: NodeSortRecord.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/NodeSortRecord.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- NodeSortRecord.java 2001/08/17 13:17:45 1.3
+++ NodeSortRecord.java 2001/09/25 19:06:43 1.4
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: NodeSortRecord.java,v 1.3 2001/08/17 13:17:45 morten Exp $
+ * @(#)$Id: NodeSortRecord.java,v 1.4 2001/09/25 19:06:43 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -168,7 +168,7 @@
}
// Treat number as NaN if it cannot be parsed as a double
catch (NumberFormatException e) {
- num = new Double(Double.NaN);
+ num = new Double(Double.POSITIVE_INFINITY);
}
_values[_scanned++] = num;
return(num);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org