banner design

JavaScript Table Sorter is a lighweight code (1.7kb) for transforming standard tables into a sortable grid.

It includes alternate row formatting, header class toggling, auto data type recognition and selective column sorting.

JavaScript Table Sort

After inserting the JS file into the website, a simple function does the job:

var sorter=new table.sorter("sorter");
sorter.init("sorter",1);

It is possible to mention which column will be sorted by default & which columns won’t have a sort feature.