sort chapters, subchapters and sections, refs #63