def awards_grants_honors(p):
    'Make sorted awards grants and honors list.\n\n    Parameters\n    ----------\n    p : dict\n        The person entry\n    '
    aghs = []
    for x in p.get('funding', ()):
        d = {'description': '{0} ({1}{2:,})'.format(latex_safe(x['name']), x.get('currency', '$').replace('$', '\\$'), x['value']), 'year': x['year'], '_key': date_to_float(x['year'], x.get('month', 0))}
        aghs.append(d)
    for x in (p.get('service', []) + p.get('honors', [])):
        d = {'description': latex_safe(x['name'])}
        if ('year' in x):
            d.update({'year': x['year'], '_key': date_to_float(x['year'], x.get('month', 0))})
        elif (('begin_year' in x) and ('end_year' in x)):
            d.update({'year': '{}-{}'.format(x['begin_year'], x['end_year']), '_key': date_to_float(x['begin_year'], x.get('month', 0))})
        elif ('begin_year' in x):
            d.update({'year': '{}'.format(x['begin_year']), '_key': date_to_float(x['begin_year'], x.get('month', 0))})
        aghs.append(d)
    aghs.sort(key=(lambda x: x.get('_key', 0.0)), reverse=True)
    return aghs
Make sorted awards grants and honors list.

Parameters
----------
p : dict
    The person entry
def awards_grants_honors(p):
    'Make sorted awards grants and honors list.\n\n    Parameters\n    ----------\n    p : dict\n        The person entry\n    '
    aghs = []
    for x in p.get('funding', ()):
        d = {'description': '{0} ({1}{2:,})'.format(latex_safe(x['name']), x.get('currency', '$').replace('$', '\\$'), x['value']), 'year': x['year'], '_key': date_to_float(x['year'], x.get('month', 0))}
        aghs.append(d)
    for x in (p.get('service', []) + p.get('honors', [])):
        d = {'description': latex_safe(x['name'])}
        if ('year' in x):
            d.update({'year': x['year'], '_key': date_to_float(x['year'], x.get('month', 0))})
        elif (('begin_year' in x) and ('end_year' in x)):
            d.update({'year': '{}-{}'.format(x['begin_year'], x['end_year']), '_key': date_to_float(x['begin_year'], x.get('month', 0))})
        elif ('begin_year' in x):
            d.update({'year': '{}'.format(x['begin_year']), '_key': date_to_float(x['begin_year'], x.get('month', 0))})
        aghs.append(d)
    aghs.sort(key=(lambda x: x.get('_key', 0.0)), reverse=True)
    return aghs