def leaderboard_sorting_function(entry: tuple[str, dict]) -> tuple[int, int]:
    """
    Provide a sorting value for our leaderboard.

    The leaderboard is sorted primarily on the score someone has received and
    secondary on the number of stars someone has completed.
    """
    result = entry[1]
    return result["score"], result["star_2"] + result["star_1"]