def sort_reference_list(reference_list):
    """Given a reference_list, sort it by number"""

    used_reference_list = []
    # Remove unused references from list
    for reference in reference_list:
        if reference.get('number'):
            used_reference_list.append(reference)
        
    return sorted(used_reference_list, key=lambda k: k['number'])