modify chapter_7_sort