title: Plone 4 : Sorting and Pagination
body: <p>I'm displaying a table of records in a page. Say the records are about 200, and I have enabled pagination to 30 rows a page. I have also enabled sorting using the method discussed <a href="http://plone.org/documentation/kb/making-tables-sortable/usage" rel="nofollow">here</a>. </p>
  
  <p>The pagination works fine, but when I sort a column, it only sorts the current page and not all the records i.e. the current 30 rows instead of 200.</p>
  
  <p>Does this feature exist in Plone 4 where one can sort all the pages in a table?</p>
  
  <p>Below is a sample of the code that I have:</p>
  
  <pre><code>&lt;div metal:use-macro="here/batch_macros/macros/navigation" /&gt;
  &lt;table class="listing" id="sortable"&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th&gt;Table header&lt;/th&gt;
        &lt;/tr&gt; 
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;Table cell&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;div metal:use-macro="here/batch_macros/macros/navigation" /&gt;
  </code></pre>
  
  <p>Any help will be greatly appreciated.</p>