Sorting arranges data in order. The algorithms differ in speed, memory use and whether they keep equal items in their original order.