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
Deepika TestDeepika Test 

How to create list of Accounts with sorting order(by selecting a button)?

Waqar Hussain SFWaqar Hussain SF
List<Account> AccList = [Select Id, Name from Account Order by CreatedDate desc limit 100];

 
Deepika TestDeepika Test
Hi Waqar, Actually I needed the structure we get in standard page view with all columns be able to be sorted on clicking any of the header..