def term_info_as_list(term_info):
    """
    Given a dictionary as returned by `parse_term_code`, return a list
    suitable for use as a sort key.
    """
    return [term_info["year"], term_info["spring"]]