jQuery Tablesorter



snippets/11/client/v2.html
<script id="show-items-template" type="text/x-handlebars-template">
<table id="items-table" class="tablesorter">
    <thead>
    <tr><th>Item</th><th>Date</th><th>X</th></tr>
    </thead>
    <tbody>
{{#each data.items}}
    <tr><td>{{ text }}</td><td>{{ date }}</td><td><button class="delete" data-id="{{ _id.$oid }}">x</a></td></tr>
{{/each}}
    </tbody>
</table>
</script>

snippets/11/client/include_tablesorter.html
<script type="text/javascript" src="../public/javascripts/jquery.tablesorter.min.js"></script>

snippets/11/client/tablesorter.html
<table id="items-table" class="tablesorter">

snippets/11/client/tablesorter.js
$("#items-table").tablesorter();