Fix sorting for top level chapters.