Sorting the sheep in training