Skip to main content

Bug Tracker

Side navigation

Ticket #3590: tablesorter-bug.html
File tablesorter-bug.html, 1.5 KB (added by johnnyh, November 10, 2008 06:14PM UTC)

This table taken from one of the tablesorter examples and contains large number values that include commas

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	                    "http://www.w3.org/TR/html4/loose.dtd">
	<html>
	<head>
	  <script src="http://code.jquery.com/jquery-latest.js"></script>
	 
  <script>
	  $(document).ready(function(){
    $("#listing").tablesorter({ 0: {sorter:"text"}, 1: {sorter:"integer"}});
  });
	  </script>
	 
	</head>
	<body>
	  <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)">
	<script src="http://tablesorter.com/jquery-latest.js"></script>
	<script src="http://tablesorter.com/jquery.tablesorter.js"></script>
	
	<link rel="stylesheet" href="http://tablesorter.com/themes/blue/style.css" type="text/css" media="print, projection, screen" />

	        <table id="listing" class="tablesorter">
	           <thead>
	               <tr>
	                  <th>String</th>
	                  <th>Number</th>
	               </tr>
	           </thead>
	           <tbody>
                <tr>
                    <td>Blue</td>
	                     <td>500</td>
                </tr>
	                <tr>
                     <td>Green</td>
                    <td>1,000</td>
                </tr>
                <tr>
	                     <td>Red</td>
                     <td>2,000</td>
	                </tr>
                <tr>
	                     <td>Brown</td>
	                     <td>10,000</td>
	                </tr>
	           </tbody>
	        </table>
</body>
</html>

Download in other formats:

Original Format