org.richfaces.component.UIColumn column = (org.richfaces.component.UIColumn) component;
FilterField filterField = column.getFilterField();
if (filterField != null) {
filterFields.add(filterField);
}
SortField2 sortField = column.getSortField();
if (sortField != null) {
sortFieldsMap.put(component.getId(), sortField);
}
}
}
List<SortField2> sortFields = new LinkedList<SortField2>();
Collection<Object> sortPriority = getSortPriority();
if (sortPriority != null) {
for (Object object : sortPriority) {
if (object instanceof String) {
String id = (String) object;
SortField2 sortField = sortFieldsMap.get(id);
if (sortField != null) {
sortFields.add(sortField);
sortFieldsMap.remove(id);
}
}