We have a visualforce page which has a pageblock table with 3 columns in it. We would like to give user the ability to sort ascending and descending based on the last modified date.
i.e When user clicks on this column, it should be able to sort both ways.
Currently We have sorted the query returning data using order by Last Modified Date in the controller. This displays data by default but still users would like to have the ability.
What is the best way to get this achieved ? Any suggestions or code sample will be helpful. Appreciate it.
Thanks NS Mani