sortInDocumentOrder
531532533534535536537538539540541
{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
6869707172737475767778
result = lval.toNodeSet().union(rval.toNodeSet()); } else { ValueSequence values = new ValueSequence(true); values.addAll(lval); values.addAll(rval); values.sortInDocumentOrder(); values.removeDuplicates(); result = values; } }