TOC sorted for pdf finally