Fix enumeration order when reopening project tabs.

We were enumerating them backwards (intentionally…),
which led to the tabs being shown in reverse order after
reopening a project. Not sure why the original decision to
enumerate in reverse was made, but it was… How you call
it… Wrong.