cacheStore.clear();
ColumnConfig<M, ?> column = cm.getColumn(colIndex);
ValueProvider<? super M, ?> vp = column.getValueProvider();
SortInfoBean bean = new SortInfoBean(vp, sortDir);
if (sortDir == null && sortState != null && vp.getPath().equals(sortState.getSortField())) {
bean.setSortDir(sortState.getSortDir() == SortDir.ASC ? SortDir.DESC : SortDir.ASC);
} else if (sortDir == null) {
bean.setSortDir(SortDir.ASC);
}
grid.getLoader().clearSortInfo();
grid.getLoader().addSortInfo(bean);
maskView();