title: Primefaces "sortBy=" doesn't work
body: <p>I'm developing an application using Primefaces + JSF. My data table works, but has a problem at sort <code>sortBy=</code>, I tried <code>sortBy="#{pc.rota}"</code> but it doesn't work too:</p>
  
  <p>Data table show all rows, the problem I think is <code>sortBy=</code> or my backing bean.</p>
  
  <p><code>page.xhtml</code></p>
  
  <pre><code>&lt;h:body&gt;
  
      &lt;h:form id="pcEmulation"&gt;
  
          &lt;p:dataTable id="dataTablePCEMulation"  var="pc" value="#{pCEmulationBean.allPCEmulation}"   
  
                       rows="10"                         
                       rowsPerPageTemplate="5,30,50,100,200,300"
  
  
                       emptyMessage="Não foi encontrado"
                       &gt;
  
  
              &lt;f:facet name="header"&gt;
                  PC Emulation Web
              &lt;/f:facet&gt;
  
              &lt;p:column headerText="PC - TX OLO's"  filterValue="#{pc.filtpcn}" filterMatchMode="contains" filterBy="#{pc.filtpcn}" &gt;                
                  &lt;h:outputText value="#{pc.filtpcn}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Rota" sortBy="rota" &gt;                
                  &lt;h:outputText value="#{pc.rota}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Origem"&gt;                    
                  &lt;h:outputText value="#{pc.origem}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Antigo"&gt;
                  &lt;h:outputText value="#{pc.epcn}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Destino"&gt;
                  &lt;h:outputText value="#{pc.destino}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="PC-Novo"&gt;
                  &lt;h:outputText value="#{pc.realpcn}" /&gt;
              &lt;/p:column&gt;
  
  
          &lt;/p:dataTable&gt;
  
          &lt;p:blockUI block="dataTablePCEMulation" trigger="dataTablePCEMulation"&gt;
              LOADING&lt;br /&gt;
              &lt;p:graphicImage value="/images/loading.gif"/&gt;&lt;br /&gt;
              &lt;p:graphicImage value="/images/tim-banner2.png" width="100px" height="45px"/&gt;
          &lt;/p:blockUI&gt;
  
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>Backing bean:</p>
  
  <pre><code>@ManagedBean
  //@ViewScoped
  @SessionScoped
  public class PCEmulationBean {
  
      public List&lt;PCEmulation&gt; allPCEmulation;
  
  
  
      public List&lt;PCEmulation&gt; getAllPCEmulation() {
          PCEmulationDAO dao = new PCEmulationDAO();
          try {
              allPCEmulation = dao.getAll();
  
          } catch (ClassNotFoundException | SQLException e) {
              System.out.println("Problema no metodo list : " + e);
          }
  
          return allPCEmulation;
      }
  
  }
  </code></pre>