Lightweight sorting of tables.
Just add [data-sort] attributes to the th elements in columns you'd like to sort a table by,
include ~1kB of JS & CSS, and initialise with sorter() – and that's it!
For installation instructions and more customisation options, you can check out the readme file.
| Name | Height | Age | Points |
|---|---|---|---|
| 167 cm | 24 | 173 | |
| 183 cm | 33 | 135 | |
| 192 cm | 27 | 239 | |
| 176 cm | 37 | 240 | |
| 163 cm | 27 | 183 |