{{#markdown}}
For user-interactive and programatic table sorting, we integrate Tablesorter.
To use the plugin you will need to:
/libraries/tablesorter/jquery.tablesorter.min.js
. The file is not part of the default EBI Framework JS config..tablesorter
class to your table.thead
and tbody
.$("#table-sort-demo").tablesorter();
Here's a quick demo. Note that is supports the responsive table techniques.
Tip: if the plugin isn't detecting your data type correctly, try telling the plugin of your data type and include Tablesorter's optional jquery.metadata.js
.