Refactored ChapterComparator