<p>For user-interactive and programatic table sorting, we integrate <ahref="https://github.com/christianbach/tablesorter">Tablesorter</a>.</p>
<p>To use the plugin you will need to:</p>
<ol>
<li>You will need to include the <code>/libraries/tablesorter/jquery.tablesorter.min.js</code> file. This is not part of the default EBI Framework JS config.</li>
<li>Add the <code>.tablesorter</code> class to your table.</li>
<li>Ensure your table has a <code>thead</code> and <code>tbody</code>.</li>
<li>Give your table a CSS ID.</li>
<li>Invoke the plugin with JS, ala: <code>$("#table-sort-demo").tablesorter(); </code>
</ol>
<p>Here's a quick demo. Note that is supports the responsive table techniques.</p>
<p>Tip: if the plugin isn't detecting your data type correctly, try telling the plugin of your data type and include the <code>jquery.metadata.js</code> file.</p>
<!-- Include for table sorting -->
<!-- Note that we've loaded this with "defer", this technique may not be appropriate for your uses.