Yelp interview question

Sort restaurant based on the frequency.