A sorting algorithmA sequence of logical instructions for carrying out a task. In computing, algorithms are needed to design computer programs. will put items in a list into an order, such as alphabetical or numerical order. For example, a list of customer names could be sorted into alphabetical order by surname, or a list of people could be put into numerical order by age.
Sorting a list of items can take a long time, especially if it is a large list. A computer programSequences of instructions for a computer. can be created to do this, making sorting a list of data much easier.
There are many types of sorting algorithms. Two of them are bubble sort and bucket sort.