I have created a table using HTML::Table from a database query. To allow sorting of the table, I created an href for each column name like href="pastRequests.pl?order=date" and use the parameter order in my query. This sorts in descending order. I want to be able to sort both ascending and descending. I have seen it done that if you click once, you get the list in ascending order, click it again you get it descending order. Does anyone know how I can do this? Thanks