Meaning of “sort” - Learner’s Dictionary

sort

verb us uk /sɔːt/
An automated system sorts large volumes of mail very quickly.Mining companies sort their coal according to the size of the pieces.Manufacturers sort the glass by colour.Sort the fabric according to the quality of the fibres.Recyclable materials are sorted before the rubbish is sent for disposal.

B2 [ T ] to arrange things into different groups or types or into an order:

They sort / the paper into white and coloured for recycling.
The names are sorted alphabetically.
be sorted/get sth sorted UK informal

If something is sorted or you get something sorted, you successfully deal with it and find a solution or agreement:

I think that's more or less sorted now.
Did you manage to get everything sorted?

(Definition of “sort verb” from the Cambridge Learner’s Dictionary © Cambridge University Press)