How about something like this:
$.tablesorter.addParser({
// set a unique id
id: 'money',
is: function(s) {
// return false so this parser is not auto detected
return false;
},
format: function(s) {
return parseInt(s.replace(/\$/,'').replace(/\,/,''),10);
},
// set type, either numeric or text
type: 'numeric'
});
$("#servicesTable").tablesorter({
sortList: [[0,1]],
headers:
{
0 : { sorter: "money" },
1 : { sorter: "money" }
}
});