SORT AND CLASSIFY 6b