title: jQuery tablesorter with number_format();
body: <p>I'm using the jQuery tablesorter plugin and I'd like to make my table more readable by using a comma delimiter on the thousands, i.e. number_format($value, 0, " ", ",");</p>
  
  <p>However, this disrupts the sorting. I've been searching for a solution (e.g. <a href="http://lab.christianmontoya.com/jquery-tablesort-numbers-commas/" rel="nofollow">http://lab.christianmontoya.com/jquery-tablesort-numbers-commas/</a>), but I haven't managed to adjust it and accommodate my table. I'm new to scripting, so please be indulgent. </p>
  
  <p>What should my javascript block look like?</p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function() { 
          $("#myTable").tablesorter( {
              sortList: [[1,1], [2,1]],
              widgets: ['zebra'],
          } );
      }); 
  &lt;/script&gt;
  &lt;/head&gt;
  
  
  &lt;body&gt;
  &lt;table id="myTable" class="tablesorter"&gt; 
  &lt;thead&gt; 
  &lt;tr&gt; 
  &lt;th&gt;Username&lt;/th&gt; 
  &lt;th&gt;Level&lt;/th&gt; 
  &lt;th&gt;Experience&lt;/th&gt; 
  &lt;/tr&gt; 
  &lt;/thead&gt; 
  &lt;tbody&gt; 
  &lt;tr&gt; 
  &lt;td&gt;Fiery&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(2400, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(378433689, 0, " ", ",");?&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
  &lt;td&gt;Sixten&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(1600, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(1000000000, 0, " ", ",");?&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt;                    
  &lt;td&gt;Penny&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(885, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(8900002, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt;
  &lt;td&gt;Petra&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(2400, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(398433889, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt;
  &lt;td&gt;Neu&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(4974, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;td&gt;&lt;?php echo number_format(198433889, 0, " ", ","); ?&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;/tbody&gt; 
  &lt;/table&gt;
  &lt;/body&gt;
  </code></pre>