How to Sort a List by a value associated with the names first then alphabetically second (for whe...

Hello, I’ve got a list of restaurants for example that each have a number associated with them. I’d like to choose from the list of those restaurants but to have the list present them to me in descending order by their count. For example Red Lobster may have a 10 and Black Bear Diner may have a 12 and McDonald’s may have a 13 so the list I see:

  1. McDonald’s

  2. Black Bear Diner

  3. Red Lobster

I’m housing the restaurants in Data Jar as a dictionary called restaurants and each key is the name of the restaurant with a number as their value.


Anyhelp would be greatly appreciated, I’ve shared the shortcut to the current point I have it working. Which isn’t very far at all. I just can’t figure out how to sort the list by the count.

https://www.icloud.com/shortcuts/431defee8d624d4db225675554962ce2