code: @Override
      public int compareOrder(final NodeInfo node) {
          int retVal;
  
          // Should be in the same document.
          if (getDocumentNumber() != node.getDocumentNumber()) {
              retVal = -2;
          }
  
          // FIXME fix the key order, this can result in errors related to
          // different version of a file.
          else if (((NodeWrapper)node).mKey > mKey) {
              retVal = -1;
          } else if (((NodeWrapper)node).mKey == mKey) {
              retVal = 0;
          } else {
              retVal = 1;
          }
  
          return retVal;
      }
docs: {@inheritDoc}