i got a data table which should be sortable.
<rich:dataTable value="#{Session.ws}" var="wf" id="myworkflowstable" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" cellpadding="0" cellspacing="0" rows="20" columnsWidth="50%,50%" width="100%" border="0" columns="2"> <rich:column sortBy="#{wf.a}" colspan="1"> <center> <h:graphicImage value="#{wf.a}" /></center> <f:facet name="header" > <h:outputText value="A" styleClass="rich-table-header" /> </f:facet> </rich:column> <rich:column sortBy="#{wf.f}" colspan="1"> <h:outputText value="#{wf.f}" styleClass="#{wf.textstyle}" /> <f:facet name="header"> <h:outputText value="F" styleClass="rich-table-header" /> </f:facet> </rich:column> </rich:dataTable>