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