in reply to HTML Table sort
Just an additional thought....
when I don't want to make a trip back to the server,
I load my data (from an SQL query) into a JavaScript array
(within my cgi script) and let the client browser
do all the sorting. Not recommended for all uses,
but good for some.
"all was created from /dev/null and shall return to /dev/null"