We've discussed this a while ago, I think instigated by Geir.
The XPath specification doesn't mentioned document-order, with the exception of proximity predicates. Aside from that, there's no guarantee that results will be in any particular order. It speaks only of "Node sets", where a set is an unordered collection of non-duplicated entities. For the most part, we retain document order, because it's free. But, there are some cases (notable descendant-or-self) where we loose it. I think Geir determined that it's simply too much of a performance hit to always guarantee document ordering. I think there was a suggestion of a DocumentOrderComparator, that, given a Jaxen-returned List, it could be used re-sort that list into document-order. Check the archives for a lengthy discussion. grep for 'Geir'. -bob On Fri, 3 May 2002, Eddie Mc Greal wrote: > Mark, > I would suggest you make a test suite first to demonstrate the problem- > generally speaking order is preserved as Nodes are transported using lists > Give us an example of what you're after and then we can trace though to see > where the order is being screwed up > Eddie > ----- Original Message ----- > From: Mark Hortman <[EMAIL PROTECTED]> > To: 'bob mcwhirter' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, May 03, 2002 4:50 PM > Subject: RE: [Jaxen] Jaxen > 1.0 > > > > I would really like to get the bug fixed that makes jaxen not return > queries > > in document order. I will give it a shot to fix it if someone can give me > > some hints about why and where (in the code) the bug is. > > > > > > > > -----Original Message----- > > From: bob mcwhirter [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 03, 2002 9:35 AM > > To: [EMAIL PROTECTED] > > Subject: [Jaxen] Jaxen > 1.0 > > > > > > Well, folks.. > > > > So, if anyone has anything that didn't make it into 1.0 that they'd > > like to see in 1.1 (or 1.0.1, whichever we call it), now's the time > > to step up. > > > > > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > > _______________________________________________ > > Jaxen-interest mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest