I am using the jquery tablesorter plugin and applies it to a table with id : #table
my search facility requests for results via ajax and replaces the table with a ne
you have to re-run $('#table').tablesorter(); after search request completed.
$('#table').tablesorter();
$.ajax({ type: "POST", url: "search.php", data: "query=blabla", success: function(html){ // replace old table with new table // re-apply table sorter $('#table').tablesorter(); }
});