Fixed diagonal iteration within ordered iteration.