How to sort large tables in HTML using the DOM elements and very little overhead. I created this Javascript routine in order to sort a massive table with many rows of data that is fast as uses as little data as possible. I just wanted to share it with the world. I am using JQuery but anyone can figure out what I did.  If's fast and efficient. Basically I grab the column name from the heading clicked, figure out sort direction, take table DOM elements apart and put them in Jav