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=5205e5d1-dc16-46d7-af02-1258d99cc136)
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=5205e5d1-dc16-46d7-af02-1258d99cc136)
Opportunity line items with Quantity over 100 ordered by Name
The relatedList command page has more details about the orderBy and where attributes.