Order pages in document