Easy-to-implement script creates tables that allow the body to scroll while the column headers remain fixed in place. Clicking on any of the column headers will perform a quick client-side sorting on the data in the table.
The JavaScript Source: Miscellaneous : Sort and Lock Table
Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!