now the frames on the same page are exported in the correct order