I have a hyperlink with a query string like cgi-bin/filename.cgi?sort=ASC
. When I click this link I want it to change its value to cgi-bin/filename.cgi?sort=DESC
. And again when I click the link then it should go to its original query string state. Is it possible?
I had posted the same question previously, got an answer also which I have marked as accepted because I found that Jquery tablesorter solved my problem, but now there's a slight modification and I have been told to do it using the query string.