How to use "sorted" in a sentence

Sentences

Not much remained to be done: The contents of three cartons in the back of the deep closet had to be sorted