title: PrimeFaces 10: sortBy not working in p:dataTable
body: <p>I migrated from PrimeFaces 6.1 to 10.0.0 and now <code>sortBy</code> of every <code>p:dataTable</code> I have in my project doesn't work.</p>
  <p>An example of my <code>p:dataTable</code>:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;p:dataTable widgetVar=&quot;truckListTable&quot; id=&quot;truckListTable&quot; var=&quot;truck&quot; value=&quot;#{truckList.trucks}&quot;
      sortBy=&quot;#{truck.code}&quot; sortMode=&quot;single&quot; filteredValue=&quot;#{truckList.filteredTrucks}&quot; paginator=&quot;true&quot;
      paginatorPosition=&quot;top&quot; rows=&quot;20&quot; paginatorTemplate=&quot;{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}&quot;&gt;
      ...
      &lt;p:column sortBy=&quot;#{truck.plate}&quot; filterBy=&quot;#{truck.plate}&quot; filterMatchMode=&quot;contains&quot;&gt;
          &lt;h:outputText value=&quot;#{truck.plate}&quot; /&gt;
      &lt;/p:column&gt;
      ...
  &lt;/p:dataTable&gt;
  </code></pre>
  <p>I defined <code>truck</code> variable as follow in my bean <code>truckList</code>:</p>
  <pre class="lang-java prettyprint-override"><code>private List&lt;Map&gt; trucks;
  
  public List&lt;Map&gt; getTrucks() {
      return trucks;
  }
  
  public void setTrucks(List&lt;Map&gt; trucks) {
      this.trucks = trucks;
  }
  </code></pre>
  <p>My problem is when I click the column header, the table rows are not sorted.</p>
  <p><code>filterBy</code> works fine, but <code>sortBy</code> no. Where am I doing wrong?</p>