SORT AND CLASSIFY 5B