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
Semira@gmail.comSemira@gmail.com 

Create a sort filter last 'modified by' for multiple objects

Hi, 

I'm sort of at a roadblock. Javascript is not my forte and this is first time attempting this. I'm trying to search online to come up with a solution. Any guidance will be helpful. 

What I'm trying to do is create a drop down sort field on Visualforce page. In my controller, I have to query and search for multiple objects with a 'keyword'. When the search results displays, User should be able to sort it by Last modified By. However, since I have different List for each individual object query, how do I create the sort. 

List<connectors__c>
List<article>
List<communityAnswer>

I'm trying to load the data into Javascript array and then sort the array by last modified by. Then display the results. 

Any small code example would be much appreciated or any other online resources. Thank you.
User-added image