def __iter__(self):
        it = iter(self.table)
        hdr = next(it)
        shdr = sorted(hdr)
        indices = asindices(hdr, shdr)
        transform = rowgetter(*indices)

        # yield the transformed header
        yield tuple(shdr)

        # construct the transformed data
        missing = self.missing
        for row in it:
            try:
                yield transform(row)
            except __HOLE__:
                # row is short, let's be kind and fill in any missing fields
                yield tuple(row[i] if i < len(row) else missing
                            for i in indices)
dataset/ETHPy150Open alimanfoo/petl/petl/transform/headers.py/SortHeaderView.__iter__