title: Primefaces dataTable Sorting does not seem to work
body: <p>I am having difficulties sorting a dynamic dataTable</p>
  
  <p>dataTable</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;h:form prependId="false" id="Main_Form"&gt;
      &lt;p:dataTable id="dataTable" var="c" value="#{databaseSearch.customerList}"  
          paginator="true" rows="10" paginatorAlwaysVisible="false"
          paginatorTemplate="Page {CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}  Rows per page {RowsPerPageDropdown}"  
          rowsPerPageTemplate="5,10,15,30" draggableColumns="True"&gt;  
          &lt;p:column sortBy="#{c.machine}" headerText="Machine"&gt;  
              &lt;h:outputText value="#{c.machine}" /&gt;   
          &lt;/p:column&gt;  
          &lt;p:column sortBy="#{c.company}" headerText="Company"&gt;  
              &lt;h:outputText value="#{c.company}" /&gt;
          &lt;/p:column&gt;  
          &lt;p:column sortBy="#{c.contact}" headerText="Contact"&gt;  
              &lt;h:outputText value="#{c.contact}" /&gt;  
          &lt;/p:column&gt;  
          &lt;p:column sortBy="#{c.phone}" headerText="Phone"&gt;  
              &lt;h:outputText value="#{c.phone}" /&gt;  
          &lt;/p:column&gt;  
          &lt;p:column sortBy="#{c.email}" headerText="Email"&gt; 
              &lt;h:outputText value="#{c.email}" /&gt;
          &lt;/p:column&gt;  
          &lt;p:column exportable="false" headerText="Modify"&gt;   
              &lt;center&gt;
                  &lt;p:commandButton id="basic" value="Update"
                      action="#{updateEntry.setMachine(c.machine)}"
                      oncomplete="dlg1.show();"
                      styleClass="ui-Machinebutton" update=":Update_Entry"/&gt;
                  &lt;p:tooltip for="basic" value="Update/Delete Database Entry"
                      showEffect="fade" hideEffect="fade" /&gt;
              &lt;/center&gt;
          &lt;/p:column&gt; 
      &lt;/p:dataTable&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>I am using a <code>@SessionScoped</code> bean where <code>databaseSearch.customerList</code> would query the database and populate the dataTable. When I click on the column name to sort, the sort arrow mark changes but the table contents do not sort.</p>
  
  <p>I am using PF 3.4.2</p>