Sorting Tables using Ajax

This is by far the best solution I’ve come across:

http://www.kryogenix.org/code/browser/sorttable/

You don’t have to hard code anything, merely include the appropriate JS file, add a unique ID to the table, and give it a class of “sortable”.

Genius.