@Override public int compareTo(ITask t){
  setSortValue(getGroupTitle());
  t.setSortValue(t.getGroupTitle());
  int result=compareBySortValue(t);
  if (result == 0) {
    setSortValue(getElementTitle());
    t.setSortValue(t.getElementTitle());
    result=compareBySortValue(t);
  }
  if (result == 0) {
    setSortValue(getProcessName());
    t.setSortValue(t.getProcessName());
    result=compareBySortValue(t);
  }
  if (result == 0) {
    setSortValue(getName());
    t.setSortValue(t.getName());
    result=compareBySortValue(t);
  }
  return result;
}

@ Override public int compareTo ( ITask t ) { setSortValue ( getGroupTitle ( ) ) ; t . setSortValue ( t . getGroupTitle ( ) ) ; int result = compareBySortValue ( t ) ; if ( result == 0 ) { setSortValue ( getElementTitle ( ) ) ; t . setSortValue ( t . getElementTitle ( ) ) ; result = compareBySortValue ( t ) ; } if ( result == 0 ) { setSortValue ( getProcessName ( ) ) ; t . setSortValue ( t . getProcessName ( ) ) ; result = compareBySortValue ( t ) ; } if ( result == 0 ) { setSortValue ( getName ( ) ) ; t . setSortValue ( t . getName ( ) ) ; result = compareBySortValue ( t ) ; } return result ; }
sort order : grouptitle , elementtitle , processname , name numericstringcomparator is used for sorting .
