// add the preferred comparator for AdvancedTableFormat
if(tableFormat instanceof AdvancedTableFormat) {
AdvancedTableFormat advancedTableFormat = (AdvancedTableFormat)tableFormat;
Comparator columnComparator = advancedTableFormat.getColumnComparator(column);
if(columnComparator != null) comparators.add(new TableColumnComparator(tableFormat, column, columnComparator));
// otherwise just add the default comparator
} else {
comparators.add(new TableColumnComparator(tableFormat, column));
}
}