def sort_places_by_rating(places):
    """
    Return list of places, sorted by ranking (highest to lowest)
    :param places: list of places
    :return: list of places, sorted by rating
    """
    for place in places:
        if not place["gm_rating"]:
            place["gm_rating"] = 1
    places = sorted(places, key=lambda x: x["gm_rating"], reverse=True)
    return places