
A new version of this script is available here.
This JavaScript table sorting script is easy to use, fast and lightweight at only 1.7KB. It includes alternate row formatting, header class toggling, auto data type recognition and selective column sorting. It will currently sort strings, numbers and currency. More features will follow.
To initialize sorting use the following code:
var sorter=new table.sorter('sorter');
sorter.init('sorter',1);
You must create a new table sorter object before initialization. The parameter taken by table.sorter is the variable name used for the object. The object.init function takes 2 parameters: the id of the table and the index of the initially sorted column (optional). If you want to exclude a column from sorting then add class=”nosort” to the appropriate table header. The styling of the table is totally customizable via CSS.
This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license. Community support is available here. Paid support is also available, contact me for details.
Click here to download the source code.
I would also like to thank my first sponsor, WebbyNode, and encourage you all to sign up for their beta Xen VPS Service by visiting their website.

Pingback: Ethan’s Blog » Blog Archive » Yay!
Pingback: links for 2008-11-05 at James A. Arconati
Pingback: Some links | Ionut Staicu - Webdeveloper Blog
Pingback: Useful Links (06/11/2008) | Apramana
Pingback: Tabellen per JavaScript sortieren at Blog.Tocki
Pingback: Visual-Blast Media
Pingback: iulian.anghel » Blog Archive » Monday Script News (1)
Pingback: Lightweight JavaScript Table Sorter | SulVision
Pingback: Daily del.icio.us for November 18th through November 22nd — Vinny Carpenter's blog
Pingback: JavaScript Table Sorter | Ajaxonomy
Pingback: Tabla en Javascript - Addictools Forum
Pingback: JavaScript Table Sorter
Pingback: JavaScript Table Sorter | Mantis Technology Solutions Blog
Pingback: 2008-11-11 « My Blog
Pingback: JavaScript Table Sorter at Blog Borchani Studios
Pingback: 2008-11-11 « My Blog
Pingback: JavaScript Table Sorter - Web Development Blog « My Blog
Pingback: JavaScript Table Sorter, trier vos tableaux| Webmaster - Ressources et outils gratuits pour votre site internet - Free Tools| Free Tools, Le meilleur des outils gratuits pour webmaster
Pingback: Sorting data made easy using JavaScript table sorter at AjaxApp.com, ajax app and cool web apps!