It looks like you are using my fork of tablesorter, if so, then try the following:
Initialize tablesorter in the document ready function (it's fine if it is an empty table)
jQuery("#animalsinexhibit").tablesorter({
debug : true,
widgets : ['zebra', 'columns'],
usNumberFormat : false,
sortReset : true,
sortRestart : true
});
then within the ajax call, since you're replacing the entire table contents (including the thead content), use the updateAll
method
success: function(html) {
jQuery("#animalsinexhibit")
.html(html)
.trigger('updateAll', [resort]);
},