I had problems handling currencies, then I used this code
<script type='text/javascript'>
$(document).ready(function () {
$("#3dprojector").tablesorter();
}
);
// add parser through the tablesorter addParser method
$.tablesorter.addParser({
// set a unique id
id: 'thousands',
is: function(s) {
// return false so this parser is not auto detected
return false;
},
format: function(s) {
// format your data for normalization
return s.replace('$','').replace(/,/g,'');
},
// set type, either numeric or text
type: 'numeric'
});
$(function() {
$("table").tablesorter({
headers: {
1: {//zero-based column index
sorter:'thousands'
}
}
});
});
</script>
the problem is, it only sorts only one way. I'm not sure if I have used parser the right way. This script is before finishing /head tag on my website. Thanks for help :-)