Lightweight JavaScript Table Sorter
5
Nov
// php the_time('Y') ?>
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
Compatibility: All Major Browsers
Website: http://www.leigeber.com/2008/11/javascript-table-sor...
Demo: http://sandbox.leigeber.com/sorter/index.html
- Tags:
Javascript
- Filed under: Browsing, Goodies, License Free, Licenses
- 3 Comments
















3 Responses for "Lightweight JavaScript Table Sorter"
[...] WebResourcesDepot habe ich ein JavaScript gefunden, dass es ermöglicht ganz normale HTML-Tabellen sortierbar zu [...]
amazing, thanks
Hi,
when the page is loaded, the sorter.init(“sorter”,1); sort the colone by growing, is it possible to make the loading sort like DESC ?