In Salesforce Reports, the standard sort order for grouped summary and matrix reports only offers 'Ascending' or 'Descending' options at the summary level. However, there are additional methods to sort data in Salesforce Reports: using a Roll-Up Summary Field (RSF) to sort by record count, using a dashboard component to sort by any row value, and managing sort order for picklist field groupings. This article explains each approach.
To sort any report by a Record Count value, create a Roll-Up Summary Field (RSF) to calculate the total Record Count of a related list underneath the object you’re trying to rank.
If you're new to using RSFs, see our "Roll-Up Summary Field" documentation or visit the Salesforce Trailhead on Implement Roll-Up Summary Fields.
Use a Chart dashboard component and select Sort Rows By on the component's "Formatting" tab to sort your results in ascending or descending order by any row value.
If you use a Table component, your records would be listed in descending order row value.
If you're new to using dashboards, see our "Add a Dashboard Component" documentation.
The order of groupings containing Picklist field values is based on how the values are arranged in the picklist field itself, not the arrangement selected in the Sort Order.
To reorder Picklist values in a sorted report, you need to reorder the Picklist using the instruction in our "Sort Picklists" documentation.
Sorting does not work when grouping is added on a 1-to-1 unique field. When a unique field is grouped, it tries to sort the details of the grouping level, not the grouping level itself.
Sort Report Results - Salesforce Help
Salesforce Idea - Sort a report in Lightning by record count
Visit the Trailblazer Community on Reports & Dashboards to ask questions and get help from the Salesforce community: Reports & Dashboards.
000385359

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.