 <p>If you use jquery datatables you can do something like this in your click event:</p> <pre><code>var columnIndexToSort = 0, sortAcending = true; $("#table").fnSort([[columnIndexToSort, sortAcending ? 'asc' : 'desc']]); </code></pre> <p>This will cause jquery datatables to sort and redraw the table for you. The jquery datatables plugin is very powerful and I find it harder to find something it can't do rather than something it can.</p>