Sorting is any process of arranging items according to a certain sequence or in different sets. It has two common, yet distinct meanings (i) ordering: arranging items of the same kind, class or nature, in some ordered sequence. (ii) categorizing: grouping and labeling items with similar properties together (by sorts).