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