I have a table of data that is dynamically being brought in with PHP. I have two Column Headers - Name and Price
I am looking for a php script that lets me sort the data by clicking on one of the Column headers, and then when the user clicks on it again, I want it to sort the data in the reverse order. Or if the user clicks on the other column header, it will sort it by that column.
Does anyone know where I can find a PHP script that does that?