Hi ,

Thanks for the help. 

We have two Result object, Both are pointing to the same set of nodes but having different order. We are trying to check whether two result are same using Result's sameAs() method but it is returning false when orders mismatch.

Thanks

On 24 February 2015 at 19:18, Christian Grün <christian.gruen@gmail.com> wrote:
> Can
> you please help me in defining equals and hashcode method for the wrapper.

This may help (it's the code used for the XQuery operator "is", which
compares the node identity of two nodes for equality):

  https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/value/node/DBNode.java#L200-L204