I want to sort my table by clicking a header of my table, I have already figured out how to do that here : How to sort rows of HTML table that are called from MySQL
However I am wondering, is there away, that by clicking a second time on that button, the sort will go reverse and by clicking a third time back to normal, etc ?