((DynamicColumn) sortColumn).applyStatelessModel();
Object sortByProperty = sortColumn.getSortBy();
if(sortByProperty == null) {
sortByVE = columnSortByVE;
comparator = new DynamicChainedPropertyComparator((DynamicColumn) sortColumn, sortByVE, table.getVar(), meta.getSortOrder(), sortColumn.getSortFunction(), caseSensitiveSort, locale);
}
else {
sortByVE = createValueExpression(context, table.getVar(), sortByProperty);
comparator = new BeanPropertyComparator(sortByVE, table.getVar(), meta.getSortOrder(), sortColumn.getSortFunction(), caseSensitiveSort, locale);
}