$.tablesorter.addParser({
  id: "comma_number",
  is: function(s) {
    return /^[0-9]?[0-9,\.]*$/.test(s);
  },
  format: function(s) {
    return jQuery.tablesorter.formatFloat( s.replace(/,/g,'') );
  },
  type: "numeric"
});

$.tablesorter.addParser({
  id: "attack",
  is: function(s) {
    return false;
  },
  format: function(s) {
  	var exploded = s.split(' ~ ');
    return $.tablesorter.formatFloat( exploded[0].replace(/,/g,'') );
  },
  type: "numeric"
});

$(document).ready(function()
    {
        $("#mon_table").tablesorter({
        	headers: {
        		2: { sorter: 'comma_number' },
        		3: { sorter: 'attack' },
        		4: { sorter: 'comma_number' },
        		5: { sorter: 'comma_number' }
        		}
        	});
    }
);