private Comparator comparator;
public Object invoke(FacesContext facesContext, Object[] aobj)
throws EvaluationException {
if (aobj[0] instanceof SortActionEvent) {
SortActionEvent sortEvent = (SortActionEvent) aobj[0];
if (LOG.isDebugEnabled()) {
LOG.debug("sorterId = " + sortEvent.getComponent().getId());
}
UIColumn column = sortEvent.getColumn();
UIData data = sortEvent.getSheet();
Object value = data.getValue();
if (value instanceof DataModel) {
value = ((DataModel) value).getWrappedData();
}