def sort_data(unsorted_list, metric, limit = 10000, reverse=True):           
    """
    Sorts a list of dictionaries by the "metric" key given
    """
    sorted_list = sorted(unsorted_list, key = lambda k: k[metric], reverse = reverse)
    top_results = sorted_list[:limit]      
    return top_results