I have a list of entries which I would like to sort by date, time, name, etc. Of course, this means I want the ability to sort in ascending and descending order.
What I’d like to do is create a series of buttons which will control how this information is sorted. I would like each button to be uniquely selected, so the user can only choose one, and I would like the selected button to have a little arrow next to it (up or down) to indicate the sort direction. If a selected button is pressed, it will change the direction of the arrow, and thus the sort direction.
What is the best way to approach developing these buttons? Is there a pre-developed script for this?
(Please note, I’m asking how to develop the buttons, not the sorting. I’ll be doing that with AJAX and MySQL.)
Thank you,
Multimediocrity