function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
List<Account> accList=new List<Account>(); for(Account acc:[SELECT Id, Name FROM Account Order By CreatedDate DESC]){ accList.add(acc); }
accList are in sorted order
Let me know if this helps.