jquery tablesorter - formatted currency - what do I do wrong? <p>I had problems handling currencies, then I used this code</p> <pre><code>&lt;script type='text/javascript'&gt; $(document).ready(function () { $(&amp;quot;#3dprojector&amp;quot;).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' } } }); }); &lt;/script&gt; </code></pre> <p>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 :-)</p>