AbstractColumn column = (AbstractColumn) component;
FilterField filterField = column.getFilterField();
if (filterField != null) {
filterFields.add(filterField);
}
SortField sortField = column.getSortField();
if (sortField != null) {
sortFieldsMap.put(component.getId(), sortField);
}
}
}
List<SortField> sortFields = new LinkedList<SortField>();
Collection<?> sortPriority = getSortPriority();
if (sortPriority != null) {
for (Object object : sortPriority) {
SortField sortField = sortFieldsMap.get(object);
if (sortField != null) {
sortFields.add(sortField);
sortFieldsMap.remove(object);
}
}