sort TOC pages