to arrange a group of items in numerical or alphabetical order. Many computer operating systems include built-in sorting programs.
to arrange items in numerical or alphabetical order.
Many different algorithms can be used to sort a group of items. If the number of items is small, it is probably best to use an algorithm that can be represented by a short program. If the number of data items is large, then it is more important to use a faster algorithm, even if it is complicated. Some algorithms assume that the data items have been read into the memory of the computer. However, if there is a very large number of items, it will be necessary to use an algorithm that works when the data items are stored on an auxiliary storage device. Since sorting is such a common operation, many operating systems include built-in sorting algorithms. For examples of specific sorting algorithms, see bubble sort; insertion sort; merge sort; quicksort; radix sort; selection sort; Shell sort.
Computer file maintenance: process that arranges records in the appropriate sequence.
Direct mail: process of batching mail by its destination prior to mailing, or batching documents for distribution and/or handling. For example, incoming direct-mail orders are usually sorted by cash and credit orders so that the cash orders can receive special handling.

