I've written a web page with an HTML table that contains hundreds of rows. I've programmed my page with JavaScript so that the user may click on the header at the top of any column to sort the table by that column.
It works well, but it takes a little while because there are so many rows. I am using the JavaScript array.sort method to sort the underlying data which is then used to write the rows of data to the page.
The problem is that when the user clicks on a header, the browser freezes until the operation is complete. Is there someway to program my page so that the browser does not freeze while the table is being sorted?