Table Sorting On The Client Side

The love affair with jQuery continues…

In one project, I got cute and filtered a table based on a checkbox that read ‘mine only’. When checked, the user would only see rows for the cases assigned to them. It is even checked by default.

However, when column sorting was requested on that same table, I realized my usual server-side sorting routine would not suffice, as it would not remember the ‘mine only’ selection without something fancier the parameterized links on the column headers.

Lost you yet? Sorry… just check out tablesorter, a jQuery plugin that allows you to sort columns without a server call, maintaining state on the client side.

It even does secondary column sorting. And no page refresh for the user?

Yum. So good.

Panorama theme by Themocracy