Filtering & Sorting Related List Items
The queried related list can also be filtered or sorted based on a Salesforce field. The related list command instance can be located via the Data tab:
![image-20240125-110806.png](../__attachments/160497919/image-20240125-110806.png?inst-v=9d6b39e2-8006-4101-aa56-781bfe29038c)
The button redirects to the command location, and the order as well as filter criteria can be defined as below:
![image-20240125-111303.png](../__attachments/160497919/image-20240125-111303.png?inst-v=9d6b39e2-8006-4101-aa56-781bfe29038c)
Opportunity line items with Quantity over 100 ordered by Name
The relatedList command page has more details about the orderBy and where attributes.