1. Rank high-priority tickets by customer satisfaction
| TicketID | Priority | Opened | Closed | Agent | CSAT |
| T001 | High | 9/1 | 9/2 | Sarah | 5 |
| T002 | Low | 9/1 | 9/5 | Mike | 4 |
| T003 | Medium | 9/2 | 9/3 | Sarah | 3 |
| T004 | High | 9/3 | 9/4 | Lisa | 5 |
| T005 | Low | 9/4 | 9/8 | Mike | 2 |
| T006 | Medium | 9/5 | 9/6 | Sarah | 4 |
=SORTBY(A1:F6, B1:B6, -1, F1:F6, -1)
Result: T001High9/19/2Sarah5T004High9/39/4Lisa5T006Medium9/59/6Sarah4T003Medium9/29/3Sarah3T002Low9/19/5Mike4T005Low9/49/8Mike2
This sorts all tickets by priority level first (High before Medium before Low), then by CSAT score within each priority. High-priority tickets with the best customer satisfaction appear at the top, making it easy to identify your most satisfied urgent cases.
2. Group tickets by agent and rank their CSAT scores
| TicketID | Priority | Opened | Closed | Agent | CSAT |
| T001 | High | 9/1 | 9/2 | Sarah | 5 |
| T002 | Low | 9/1 | 9/5 | Mike | 4 |
| T003 | Medium | 9/2 | 9/3 | Sarah | 3 |
| T004 | High | 9/3 | 9/4 | Lisa | 5 |
| T005 | Low | 9/4 | 9/8 | Mike | 2 |
| T006 | Medium | 9/5 | 9/6 | Sarah | 4 |
=SORTBY(A1:F6, E1:E6, 1, F1:F6, -1)
Result: T004High9/39/4Lisa5T002Low9/19/5Mike4T005Low9/49/8Mike2T001High9/19/2Sarah5T006Medium9/59/6Sarah4T003Medium9/29/3Sarah3
This groups tickets by agent name alphabetically, then ranks each agent's cases by satisfaction score (highest first). It reveals which agents are delivering excellent customer experiences and where performance improvement might be needed.
3. Sort tickets by fastest resolution time
| TicketID | Priority | Opened | Closed | Agent | CSAT |
| T001 | High | 9/1 | 9/2 | Sarah | 5 |
| T002 | Low | 9/1 | 9/5 | Mike | 4 |
| T003 | Medium | 9/2 | 9/3 | Sarah | 3 |
| T004 | High | 9/3 | 9/4 | Lisa | 5 |
| T005 | Low | 9/4 | 9/8 | Mike | 2 |
| T006 | Medium | 9/5 | 9/6 | Sarah | 4 |
=SORTBY(A1:F6, D1:D6-C1:C6, 1)
Result: T001High9/19/2Sarah5T003Medium9/29/3Sarah3T004High9/39/4Lisa5T006Medium9/59/6Sarah4T002Low9/19/5Mike4T005Low9/49/8Mike2
SORTBY accepts a calculated array (Closed minus Opened) as the sort key, showing resolution time in days. All single-day resolutions appear first, followed by longer resolution times, making it easy to spot which cases were handled fastest.