def sort_references_dict(refs):
    if _use_odict:
        refs_sorted = OrderedDict()
    else:
        refs_sorted = dict()
    refs_sorted['molssi_bse_schema'] = refs['molssi_bse_schema']
    for k, v in sorted(refs.items()):
        refs_sorted[k] = sort_single_reference(v)
    return refs_sorted