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
AladinCGAladinCG 

Can we use Custom Settings for Sorting purpose?

Hi,

Can anyone please tell me that what is the use of Custom Settings? I had created one Visualforce page which contains one Pageblocktable which have six columns, now I want to sort the data by clicking on column header so, when user clicks on column header than the data should be sorted in "Ascending" or "Descending" order.

So, my question is, is it possible through Custom Settings? If it is not than tell me any other way to do that.

Thanks
Nirav
kiranmutturukiranmutturu
we can't get the sorting feature as a default when you are using VF pages in case of custom settings or custom object. So you need to write the logic to do that.... 
some exapmle http://blogforce9dev-developer-edition.ap1.force.com/PageblockTableEnhancerADVDemo
AladinCGAladinCG
Hi Kiran,
Thanks for quick replay can you please tell me how can I do sorting? I am new to Salesforce so, I didn't know anything

Thanks