Here is a solution: http://jsfiddle.net/shtrih/Mh75v/
$(document).ready(function() {
// call the tablesorter plugin
$("table").tablesorter({
// define a custom text extraction function
textExtraction: function(node) {
// extract data from id and return it
console.log(node.childNodes[0].innerHTML); // Make sure the output values
return node.childNodes[0].innerHTML;
}
});
});
I've used this example: http://tablesorter.com/docs/example-option-text-extraction.html