Sorting by putting all the number 1s in one basket, all the number 2s in another basket, and all the number 3s in another basket.
To sort is to divide one group of things into smaller groups of things, so that the things in one smaller group are the same as each other in some way.
He sorted the apples, putting red apples in one basket and green apples in the other basket.