Kyrogenix’s sort table script is awesome.. it lets you make a table sortable just by adding a class to the table, and it does the rest on its own.
However, it does alot of redundant calculations which slow down sorting alot. Sooo.. I hackified it to make it alot faster.
The modified version is attatched for your pleasure!
For more information, look at http://www.kryogenix.org/code/browser/sorttable/. The version here is used in exactly the same way pretty much.