Know how to use "fewer" and "less"? Find out.
late 14c., from Old French sorte "class, kind," from Latin sortem (nominative sors) "lot; fate, destiny; share, portion; rank, category; sex, class, oracular response, prophecy," from PIE root *ser- (3) "to line up" (cf. Latin serere "to arrange, attach, join;" see series). The sense evolution in Vulgar Latin is from "what is allotted to one by fate," to "fortune, condition," to "rank, class, order." Out of sorts "not in usual good condition" is attested from 1620s, with literal sense of "out of stock."
Wretched; worthless; inferior; half-assed: this one kid, and he was a sorry shit/ The reputation of the Barclay has been one of sorry-ass service/ One more sorry-ass useless killing (entry form 1250+, variant 1970s+)