$(function(){ var columnIndex = $('table').find('th:contains("age")').index() || $('table').find('th:last-child').index(); $('table').tablesorter({ sortList : [[ columnIndex, 1 ]] }); });  … Read More