def record_sorter(raw_record: dict) -> tuple:
    """Create tuple on which we could sort."""
    return (
        raw_record['series'],
        raw_record['sub_series'],
        raw_record['ordering'],
    )