function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vigneshwaran LoganathanVigneshwaran Loganathan 

Hi all

I have done a coding in Visualforce like its shows some Records Based on the Filter values I gave as input. It's having some fields like Name,Date...
My question is how can I sort these fiels by clicking on column title.

Thanks in advance :) 
 
Best Answer chosen by Vigneshwaran Loganathan
Sforce.NinjaSforce.Ninja
You could use Javascript libraries to add column sorting. My personal favorite is Sorttable because it is very easy to use. You can download the code here-> http://www.kryogenix.org/code/browser/sorttable/

All Answers

Sforce.NinjaSforce.Ninja
You could use Javascript libraries to add column sorting. My personal favorite is Sorttable because it is very easy to use. You can download the code here-> http://www.kryogenix.org/code/browser/sorttable/
This was selected as the best answer
Sforce.NinjaSforce.Ninja
http://www.kryogenix.org/code/browser/sorttable/

Please mark the answer as best if it helps you.