Is there a way to update / sort data depending on the selection the user picked.
For instance, i have two radio buttons.. sort by name, sort by date. The data is already available on the page (using php to get data defalut to sort by name). How can i update the data dynamically if the user selects sort by data. I would prefer not having to query the data again using php.

thanks.