title: Primefaces -DataTable - Internal Sort
body: <p>can we do a internal sorting in primeface datetable ? If i have column a ,b ,c. can i sort the column c and then internally by column b in p:dataTable.</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;p:dataTable var="car" value="#{tableBean.carsSmall}"&gt;
          &lt;p:column headerText="Model"&gt;
              &lt;h:outputText value="#{car.model}" /&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="a"&gt;
              &lt;h:outputText value="#{car.year}" /&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="b"&gt;
              &lt;h:outputText value="#{car.manufacturer}" /&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="c"&gt;
              &lt;h:outputText value="#{car.color}" /&gt;
          &lt;/p:column&gt;
      &lt;/p:dataTable&gt;
  &lt;/h:form&gt;
  </code></pre>