def __iter__(self):
        "Iterates over columns in sorted order."
        cache = []
        for name, (data_type, index) in self.__column_names.items():
            cache.append((index, name, data_type))
        for item in sorted(cache):
            yield item
Iterates over columns in sorted order.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py