Response title
This is preview!
I am using jQuery to sort my website content Alphabetically or by Most Recent, what I put up so far is working great, but I want a little more from it.
On first click I want my Alphabetically button to sort them accordingly but at the same time, the text to change to Random and on second click to sort them randomly and change the text back to Alphabetically (toggle between the two on click event).
And with the button that sorts them Most Recent, the same thing like the other button but to change the text to Oldest Posts and sort them accordingly.
Here is the jsFiddle with my half of the code, working as it is.
© 2013 jQuery Foundation
Sponsored by and others.