def _get_project_runtime_iter(projects, runtimes):
    """Gets iterator over (project, runtime) pairs ordered by project name."""
    assert len(projects) == len(runtimes)
    projects = sorted(projects.values(), key=lambda p: p.name)
    runtimes = sorted(runtimes.values(), key=lambda r: r.project_name)

    return ((project, runtime) for project, runtime in zip(projects, runtimes))