
One of the niftier DHTML/Javascript hacks out there is
tablesort.js
from
WebFX.
Just drop some boilerplate Javascript into your HTML and
presto! all your tables are sortable on a mouseclick. This hack has been around
since 1998; they've recently
updated
it, but the old one works fine for me.