Tablesorter demo
All options included, as well as the uitheme widget
by Mottie
HTML
<script src="http://mottie.github.com/tablesorter/js/jquery.tablesorter.js"></script>
<script src="http://mottie.github.com/tablesorter/js/jquery.tablesorter.widgets.js"></script>
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.blue.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.dark.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.default.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.dropbox.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.green.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.grey.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.ice.css">
<link rel="stylesheet" href="http://mottie.github.com/tablesorter/css/theme.black-ice.css">
<table>
<thead>
<tr>
<th class="sorter-false" colspan="3">January</th>
<th class="sorter-false" colspan="3">February</th>
<th class="sorter-false" colspan="3">March</th>
</tr>
<tr>
<!-- January -->
<th>Metric 1</th>
<th>Metric 2</th>
<th>Metric 3</th>
<!-- February -->
<th>Metric 1</th>
<th>Metric 2</th>
<th>Metric 3</th>
<!-- March -->
<th>Metric 1</th>
<th>Metric 2</th>
<th>Metric 3</th>
</tr>
</thead>
<tbody>
<tr>
<!-- January -->
<td>Value 1</td>
<td>Value 2</td>
<td>Value 3</td>
<!-- February -->
<td>Value 1</td>
<td>Value 2</td>
<td>Value 3</td>
<!-- March -->
<td>Value 1</td>
<td>Value 2</td>
<td>Value 3</td>
</tr>
<tr>
<!-- January -->
<td>Value 1c</td>
<td>Value 2b</td>
<td>Value 3a</td>
<!-- February -->
<td>Value 1a</td>
<td>Value 2b</td>
<td>Value 3c</td>
<!-- March -->
<td>Value 1c</td>
<td>Value 2a</td>
<td>Value...
JavaScript
$('table').tablesorter({
theme: 'blue'
});