ABSTRACT

A sorting algorithm puts elements of a list in a certain order. Sorting algorithms are important for managing data. There are a large number of sorting algorithms, such as bubble sort, insertion sort, selection sort, merge sort, heapsort, and quicksort. Such algorithms have been discussed in many classical books. This chapter focuses on using the sort function in the Standard Template Library (STL).