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
jonathanrico.jonathanrico. 

Sorting Standard Set Controller Results, is it possible?

Hello everyone, I'm trying to display a list of results from a Standard Set Controller, but it seems that the entries are not being sorted, any ideas on why it's not working?

 

Here's a piece of my code:

 

 

List<Blog_Post__c> blogposts = new List<Blog_Post__c>();
blogposts = [select id,
name,
CreatedBy.name,
CreatedDate,
Content__c,
Content_Type__c,
Align_Content__c

from Blog_Post__c order by createddate desc];

controller = new ApexPages.StandardSetController(blogposts);

 

Thanks in advance!

 

 

Message Edited by jonathan rico on 07-01-2009 08:47 PM