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
kjpetersonkjpeterson 

Pull back records in relatedList in different order

I'm wanting to display the Opportunity Products related list in a different order and am having trouble coming up with a way to do it.  I'd like everything defined for the relatedlist in the pagelayout to stay the same (header buttons, columns, etc.) so that other uses can still control those pieces through the page layout editor.
 
I thought I might be able to use a relatedList tag and then give it a list of records but it only accepts a parent record that it can pull a related list from.
 
Right now I'm thinking I could extend the Opportunity standardController and then override the method it uses to get the related list but I'm don't know where to find a list of the methods every object can call.  I'd like to override its method so I can call its normal method and then reorder the list of records it returns.
 
Is what I'm trying to do possible?  Does it work like this?  Any other ideas?
azzaniazzani
I used PageBlockTable with Commandlink as header. Then I update the table source query to order by the selected column header.

Aref