A dependency free sorting component for tables
Switch branches/tags
Nothing to show
Pull request Compare This branch is 261 commits behind tristen:gh-pages.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
LICENCE
Makefile
README.md
ender.js
package.json
tablesort.js
tablesort.min.js

README.md

tablesort.js

Tablesort is a small and simple sorting component for tables written in Javascript. It has no dependencies and should have no interference with other libraries.

Basic usage

<script src='tablesort.min.js'></script>
<script>
  new Tablesort(document.getElementById('table-id'));
</script>

Features

  • Sort strings
  • Sort numbers
  • Sort currency

Ender support

Add tablesort as an internal chain method to your Ender compilation.

$ ender add tablesort

Use it:

$('.table').tablesort();

Building

Developers can rebuild the minified library by running:

  npm install --dev
  make

TODOs

  • Tests
  • Sort on date
  • Pass in an options object to:
    • Choose which row to begin sorting on.
    • Column exclusion
    • EventListener to rebuild the table.