1610s, "action of arranging into kinds or classes," from assort + -ment. Sense of "group of things of the same sort" is attested from 1759; that of "group of arranged things whether of the same sort or not" from 1791.
late 15c., "to distribute into groups or classes," from Old French assorter "to assort, match" (15c., Modern French assortir), from a- "to" (see ad-) + sorte "kind, category," from Latin sortem (nominative sors) "lot; fate, destiny; share, portion; rank, category; sex, class, oracular response, prophecy" (from PIE root *ser- (2) "to line up"). Related: Assorted; assorting.
common suffix of Latin origin forming nouns, originally from French and representing Latin -mentum, which was added to verb stems to make nouns indicating the result or product of the action of the verb or the means or instrument of the action. In Vulgar Latin and Old French it came to be used as a formative in nouns of action. French inserts an -e- between the verbal root and the suffix (as in commenc-e-ment from commenc-er; with verbs in ir, -i- is inserted instead (as in sent-i-ment from sentir).
Used with English verb stems from 16c. (for example amazement, betterment, merriment, the last of which also illustrates the habit of turning -y to -i- before this suffix).
The stems to which -ment is normally appended are those of verbs; freaks like oddment & funniment should not be made a precedent of; they are themselves due to misconception of merriment, which is not from the adjective, but from an obsolete verb merry to rejoice. [Fowler]
Others are reading
Definitions of assortment
a collection containing a variety of sorts of things;