def sort_dicts(dicts, sort_by):
    """
    
    :param dicts: list of dictionaries
    :param sort_by: key by which the list should be sorted
    :return: sorted list of dicts
    """
    return sorted(dicts, key=lambda k: k[sort_by])