uses classifier to sort