Sorting is any process of arranging items systematically, and has two common, yet distinct meanings:
ordering: arranging items in a sequence ordered by some criterion;
categorizing: grouping items with similar properties.Ordering items is the combination of categorizing them based on equivalent order, and ordering the categories themselves.