public int compare(Object obj1, Object obj2) { NewResultInvestigationVo voObj1 = (NewResultInvestigationVo) obj1; NewResultInvestigationVo voObj2 = (NewResultInvestigationVo) obj2; return direction * (voObj1.compareTo(voObj2, this.caseInsensitive)); }