Original javascript from http://www.kryogenix.org/code/browser/sorttable/
demo.html test tables.
update to handle multiple tables in one web page.