You need to sign in to do that
Don't have an account?
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!