Tablesorter is a great plugin - you can sort images by text "alt", defining your own text extraction function as follows:
$("#table_id").tablesorter({ textExtraction:function(s){ if($(s).find('img').length == 0) return $(s).text(); return $(s).find('img').attr('alt'); } });
Cells that do not contain images will be sorted by text.
(*) Confirm jQuery forum for this answer
source share