Another example (with a custom date sorting function) can be found on the Moo Database browser. Installation Download tablesort.js (9KB) or the compressed tablesort-min.js (4KB), then add this line anywhere in your page: <SCRIPT LANGUAGE='JavaScript1.2' SRC='tablesort.js'></SCRIPT> Modify your table(s) so that the header row(s) are within a <THEAD> block, any footer rows are within a <TFOOT> block