login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

Ramon Eijkemans pointed me to a script written by Stuart... unobtrusive table sorting script was awesome, offering s... text, numbers, dates and currencies, by simply adding an... a page and a class to a table!
However, it lacked a few things, most imp

Sortable Table JavaScript: Sort your tables easily!
http://yoast.com/articles/sortable-table/

Categories

/Channels/techie/JavaScript

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

Ramon Eijkemans pointed me to a script written by Stuart Langridge. This unobtrusive table sorting script was awesome, offering sort mechanisms for text, numbers, dates and currencies, by simply adding an external script to a page and a class to a table!

However, it lacked a few things, most importantly: support for alternated row classes. Working on it more, I found there were a few bugs to it too. So I started adapting it. At first there were just a few changes. Now more and more e-mails with feature requests are coming in, and I have started versioning my table sorting script.

HTML

<p><a href="http://www.textdesign.nl" onclick="javascript:exitTracker._trackEvent('article','http://www.textdesign.nl');">Ramon Eijkemans</a> pointed me to a script written by <a href="http://www.kryogenix.org" onclick="javascript:exitTracker._trackEvent('article','http://www.kryogenix.org');">Stuart Langridge</a>. This <a href="http://onlinetools.org/articles/unobtrusivejavascript/" onclick="javascript:exitTracker._trackEvent('article','http://onlinetools.org/articles/unobtrusivejavascript/');">unobtrusive</a> table sorting <a href="http://www.kryogenix.org/code/browser/sorttable/" onclick="javascript:exitTracker._trackEvent('article','http://www.kryogenix.org/code/browser/sorttable/');">script</a> was awesome, offering <strong>sort mechanisms for text, numbers, dates and currencies</strong>, by simply adding an external script to a page and a class to a table!</p> <p>However, it lacked a few things, most importantly: support for alternated row classes. Working on it more, I found there were a few bugs to it too. So I started adapting it. At first there were just a few changes. Now more and more e-mails with feature requests are coming in, and I have started versioning my table sorting script. </p>