sort table of contents