It\'s the billing list:
Service Price
---------------
S1 13 CHF
S2 Free
S3 Free
S4 40 CHF
I want to sort it by pr
You can write your own parser. See the documentation at: http://tablesorter.com/docs/example-parsers.html
Working example:
$.tablesorter.addParser({
id: 'price',
is: function(s) {
return false;
},
format: function(s) {
return s.replace(/Free/,0).replace(/ CHF/,"");
},
type: 'numeric'
});
$(function() {
$("table").tablesorter({
headers: {
1: {
sorter:'price'
}
}
});
});
http://jsfiddle.net/8BCHR/