public void addCompareCol(int sortCol,Comparator comparator){
  sortCols.add(new ArrayElementComparator(sortCol,comparator));
}

public void addCompareCol ( int sortCol , Comparator comparator ) { sortCols . add ( new ArrayElementComparator ( sortCol , comparator ) ) ; }
compare the passed in col based on the passed in comparator
