Sorting is any process of arranging items in some sequence and/or in different sets, and accordingly, it has two common, yet distinct meanings: ordering: arranging items of the same kind, class, nature, etc. in some ordered sequence, categorizing: grouping and labelling items with similar properties together (by sorts). Sorting information or data For sorting we can either specify a weak order "should not come after" or a strict weak order "should come before" (specifying one defines also the… (
More on Sorting)