// JavaScript Document

$(document).ready(function() {
 
 $("table.sort").tablesorter({ 
        // define a custom text extraction function 
        textExtraction: function(node) { 
            // if there is a link, return the content of the link
			if(node.getElementsByTagName('a')[0]){
				return node.getElementsByTagName('a')[0].innerHTML;
			}
			return node.innerHTML;
        } 
    }); 
 
});
