Post Top Ad

Post Top Ad

Saturday, November 8, 2008

Lightweight JavaScript Table Sorter

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.


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.


Requirements: No Requirements
Compatibility: All Major Browsers
Website: http://www.leigeber.com/2008/11/javascript-table-sor...
Demo: http://sandbox.leigeber.com/sorter/index.html

No comments: