returnvalue = getSubjectDNField(DNFieldExtractor.ORGANIZATIONUNIT,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.ORGANIZATIONUNIT,0));
returnvalue = getSubjectDNField(DNFieldExtractor.OU,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.OU,0));
    public int compareTo(Object obj) {      int returnvalue = -1;      int sortby = this.sortby.getSortBy();      switch(sortby){          case SortBy.USERNAME :             returnvalue = getUsername().compareTo(((UserView) obj).getUsername());            break;            case SortBy.COMMONNAME :             returnvalue = getSubjectDNField(DNFieldExtractor.COMMONNAME,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.COMMONNAME,0));                        break;            case SortBy.SERIALNUMBER :             returnvalue = getSubjectDNField(DNFieldExtractor.SERIALNUMBER,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.SERIALNUMBER,0));                        break;            case SortBy.TITLE :             returnvalue = getSubjectDNField(DNFieldExtractor.TITLE,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.TITLE,0));                        break;                        case SortBy.ORGANIZATIONUNIT :             returnvalue = getSubjectDNField(DNFieldExtractor.ORGANIZATIONUNIT,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.ORGANIZATIONUNIT,0));                        break;            case SortBy.ORGANIZATION :             returnvalue = getSubjectDNField(DNFieldExtractor.ORGANIZATION,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.ORGANIZATION,0));                         break;            case SortBy.LOCALE :             returnvalue = getSubjectDNField(DNFieldExtractor.LOCALE,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.LOCALE,0));                       break;            case SortBy.STATE :             returnvalue = getSubjectDNField(DNFieldExtractor.STATE,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.STATE,0));                       break;            case SortBy.DOMAINCOMPONENT :             returnvalue = getSubjectDNField(DNFieldExtractor.DOMAINCOMPONENT,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.DOMAINCOMPONENT,0));                       break;                        case SortBy.COUNTRY :             returnvalue = getSubjectDNField(DNFieldExtractor.COUNTRY,0).compareTo(((UserView) obj).getSubjectDNField(DNFieldExtractor.COUNTRY,0));                      break;                     case SortBy.EMAIL :             returnvalue = getEmail().compareTo(((UserView) obj).getEmail());                        break;             case SortBy.STATUS :             returnvalue = (new Integer(getStatus())).compareTo(new Integer(((UserView) obj).getStatus()));                        break;          case SortBy.TIMECREATED :             returnvalue = getTimeCreated().compareTo(((UserView) obj).getTimeCreated());                        break;          case SortBy.TIMEMODIFIED :             returnvalue = getTimeModified().compareTo(((UserView) obj).getTimeModified());                        break;                      default:            returnvalue = getUsername().compareTo(((UserView) obj).getUsername());                             }      if(this.sortby.getSortOrder() == SortBy.DECENDING)        returnvalue = 0-returnvalue;                   return returnvalue;      }