Avris Sorter – Demo

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
Luna 167 cm 24 173
Jack 183 cm 33 135
Michael 192 cm 27 239
Laura 176 cm 37 240
Anna 163 cm 27 183
Source code NPM