Map<String, String> parameters)
{
String property = parameters.get(XhtmlConstants.VALUE_PARAM);
Object state = parameters.get(XhtmlConstants.STATE_PARAM);
boolean sortOrder = !XhtmlConstants.SORTABLE_ASCENDING.equals(state);
SortStrength sortStrength = TableUtils.findSortStrength(table, property);
SortCriterion criterion = new SortCriterion(property, sortOrder, sortStrength);
SortEvent event =
new SortEvent(table, Collections.singletonList(criterion));
event.queue();