title: JQuery TableSorter Comma-Digit Parser not working
body: <p>Here's my problem,</p>
  
  <p>I am currently using the JQuery Table Sorter and I found a Comma-Digit parser on the web.  The problem I am having is it doesn't seem to be working.</p>
  
  <p>So here is what the column is sorted as:</p>
  
  <ol>
  <li>4,666</li>
  <li>141,666</li>
  <li>293</li>
  <li>341,666</li>
  <li>346</li>
  <li>461,676</li>
  </ol>
  
  <p>This should be sorted as</p>
  
  <ol>
  <li>293</li>
  <li>346</li>
  <li>4,666</li>
  <li>141,666</li>
  <li>341,666</li>
  <li>461,676</li>
  </ol>
  
  <p>The parser I am using is this:</p>
  
  <pre><code>$( function() { 
  
      $.tablesorter.addParser({
          id: "fancyNumber",
          is: function(s) {
              return /^[0-9]?[0-9,\.]*$/.test(s);
          },
          format: function(s) {
              return $.tablesorter.formatFloat(s.replace(/,/g, ''));
          },
          type: "numeric"
      });
  }); 
  </code></pre>
  
  <p>I just don't know I am doing wrong.  Am I loading it wrong? Is the parser wrong?  I need real help here and have been struggling with this problem for a while now.</p>
  
  <p><strong>Edit:</strong> Because of how I generate my columns and the columns allowed to be chosen by the user, I would never know which header is in and not.  I have tried using the class="{sorter: 'fancyNumber'}"  command as stated here: <a href="http://tablesorter.com/docs/example-meta-parsers.html" rel="nofollow noreferrer">http://tablesorter.com/docs/example-meta-parsers.html</a></p>
  
  <p>**Edit:**It looks like one of the columns is working correctly, but this column is still having problems.  maybe because it has digits and comma seperated digits?</p>