What is a sorting algorithm? Sorting algorithms are amongst the most basic concepts of computer science. A sorting algorithm is an algorithm that puts elements of a list(or array) in a certain manner. There are plethora of sorting algorithm available. Examples are- Bubble sort, Radix sort, Insertion sort, Selection sort, Quick sort, Merge sort etc. Why do we need sorting algorithm? So, the first and foremost question is why sorting is important?