Arrange pages or sheets in the correct order