code: public int compareTo(CmsSitemapChange arg0) {
  
          if (m_entryId.equals(arg0.m_entryId)) {
              return 0;
          }
          int result = CmsResource.getParentFolder(m_sitePath).compareTo(CmsResource.getParentFolder(arg0.m_sitePath));
          if (result == 0) {
              result = m_position - arg0.m_position;
              if (result == 0) {
                  // two different entries should never have the same parent and the same name, so this compare should be sufficient
                  result = m_name.compareTo(arg0.m_name);
              }
          }
          return result;
      }
docs: Will compare the parent site path and the position of the entry to change.<p>
  
  @see java.lang.Comparable#compareTo(java.lang.Object)