Examples of sortInDocumentOrder()


Examples of org.exist.dom.NewArrayNodeSet.sortInDocumentOrder()

                            {temp.add(contextNode.getNode());}
                        contextNode = contextNode.getNextDirect();
                    }
                    p.clearContext(getExpressionId());
                    // TODO : understand why we sort here...
                    temp.sortInDocumentOrder();
                    for (final SequenceIterator j = innerSeq.iterate(); j.hasNext();) {
                        final NumericValue v = (NumericValue) j.nextItem();
                        // Non integers return... nothing, not even an error !
                        if (!v.hasFractionalPart() && !v.isZero()) {
                            // ... whereas we don't want a sorted array here
View Full Code Here

Examples of org.exist.xquery.value.ValueSequence.sortInDocumentOrder()

                result = lval.toNodeSet().union(rval.toNodeSet());
            } else {
                ValueSequence values = new ValueSequence(true);
                values.addAll(lval);
                values.addAll(rval);
                values.sortInDocumentOrder();
                values.removeDuplicates();
                result = values;
            }
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.