def align_fields(fields, titles, title2index):
    """ Make sure score fields for individual passage are aligned with summary result fields by inserting empties """
    ret = len(title2index) * ['']
    for field, title in zip(fields, titles):
        ret[title2index[title]] = field
    return ret
