def make_header(schema):
    """Returns a header from a schema like that returned by parse_header(). """
    items = schema.items()
    items.sort(key=lambda i: i[1][0])

    header = '#db\t' + '\t'.join(':'.join([name, datatype])
                                 for name, (_, datatype) in items)

    return header