What do you mean by sorting?
Ordering: arranging items in a sequence, ordered by some criterion.
Categorizing: grouping items with similar properties. Here we will be dealing with the categorization of the objects. For example, cake, apple and rice can be grouped under edible items whereas football and globe can be categorized as spherical objects according to their shape.