Sorting HTML Tables with JavaScript and QuickSort
I have been in search of the illusive "Grand Master" table sorting function for about a month. I have put the script through countless rounds of refinement, and it is finally time for a public release! Version 1.0 of TSorter is now available. It is free to use, improve, and extend. I only ask that you keep my commented contact information at the top of the JavaScript file.
This is a stable release and has been well tested. You may however have some ideas on how to improve it, or even find some bugs. I am always open to suggestions, you can leave a comment or contact me directly. What is your take on my use of the HTML abbr attribute which is used on the table header cells?
I am working on a follow up article which deals with on-the-fly filtering of table columns. It will be available here before school starts.
Nov 30, -0001
3:00 am
Looks classy. Right off the bat, I'd say to make the first sort be ascending, rather than descending.And add an ajax-y spinner when it's working. The 100-line table froze my Firefox for just long enough to be disconcerting.