I have a table with store IDs and the city where the store is located.
I want to list all the stores starting with the stores that are in the city where there is the most stores.
TABLE
ID CITY
1 NYC
2 BOS
3 BOS
4 NYC
5 NYC
The output I want is the following since I have the most stores in NYC, I want all the NYC location to be listed first.
1 NYC
4 NYC
5 NYC
2 BOS
3 BOS
I can't seem to figure it out. Thanks.