Wednesday, April 11, 2007

HTML Table Sort

Many a times we have a table populated with data and we want to sort on a specific column. It doesn't makes sense to hit the server for data that we already have. The solution is to use DOM to sort the data and repopulate table using JavaScript. There are a number of such scripts available on net and a simple Google search returns a lot of results. For e.g. try searching for "HTML table sorting". One very simple to use script is available at http://webfx.eae.net/dhtml/sortabletable/sortabletable.html.