- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
07-29-2011 08:26 AM
On our web portal, we dynamically create a list of documents for an Account . These documents are associated with different programs.Is thre a way to alphabetize the list of documents?
Can these docuemnts be listed as -
Instead of being listed in the order in which they were fetched.
Solved! Go to Solution.
07-29-2011 09:06 AM
Have you tried using Order By ?
List<Document> doc = [select id,name from document order by name ASC] ; System.debug('Doc ::: ' + doc) ;
Let me know if it resolves your problem.
Certified Developer | Twitter
Don't forget to give KUDOS if post helped you.
Latest Blog Posts : Streaming API- Easy Code AND Uploading Multiple Attachments into Salesforce - Simple Code
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.