Sort the TOC