Sort grid pages by page number