def get_sources(results):
    """
    Get sources from hits, sorted by source id

    Args:
        results (dict): Elasticsearch results

    Returns:
        list of dict: The list of source dicts
    """
    sorted_hits = sorted(results['hits'], key=lambda hit: hit['_source']['id'])
    return [hit['_source'] for hit in sorted_hits]