Tablesorter demo

All options included, as well as the uitheme widget

by Mottie

HTML

<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.blue.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.dark.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.default.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.dropbox.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.green.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.grey.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.ice.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.black-ice.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/css/theme.bootstrap.css">
<link rel="stylesheet" href="https://mottie.github.io/tablesorter/addons/pager/jquery.tablesorter.pager.css">
<script src="https://mottie.github.io/tablesorter/js/jquery.tablesorter.js"></script>
<script src="https://mottie.github.io/tablesorter/js/jquery.tablesorter.widgets.js"></script>
<script src="https://mottie.github.io/tablesorter/addons/pager/jquery.tablesorter.pager.js"></script>
<table class="tablesorter">
  <thead>
    <tr>
      <th>Numbers</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>10</td>
    </tr>
    <tr>
      <td>4444</td>
    </tr>
    <tr>
      <td>55</td>
    </tr>
    <tr>
      <td>111</td>
    </tr>
    <tr>
      <td>2</td>
    </tr>
    <tr>
      <td>9</td>
    </tr>
  </tbody>
</table>

JavaScript

/* Documentation for this tablesorter FORK can be found at
 * http://mottie.github.io/tablesorter/docs/
 */
$(function() {
	$.tablesorter.addParser({
  	id: "nums",
    is: function() { return false; },
    format: function(s) {
    	var first = s.charAt(0);
      return first + "-" + s.substring(1);
    },
    type: "text"
    
  })
  $('table').tablesorter({
  	debug: true,
    headers: {
      0: {
        sorter: "nums"
      }
    }
  });
});