Optimise project order for export

Change-Id: I56c588cdddf8806a47f3b93606fd63f4badcd5ea