HTML Table -- Putting a Link in the Header for Sorting? (No JavaScript)
You would have to grab the 'sort' variable in your server-side code and resend the query to the data source so your table would be populated in the desired manner.
In order to add the link, you would want to dynamically generate the href so it would append the sort=columnnamehere to the query string.
If you need help crafting the server-side code, please include more details about your set up (scripting language, data source, etc).
Good luck!
I'm dynamically generating a table, as well as the column headers.
How do I make the columns clickable (NO JavaScript!), so that when they're clicked, they add a sort=columnNameHere entry to the query, and reload the current page with that query?