Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- 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
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- Alphabetizing the order of Dynamically created doc...
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
Alphabetiz ing the order of Dynamicall y created documents
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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 -
Abc
Bsx
Cqa
Instead of being listed in the order in which they were fetched.
Thanks.
Solved! Go to Solution.
0
Re: Alphabetiz ing the order of Dynamicall y created documents
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Force.com MVP
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.
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.

