OverviewSorting Algorithms are a special kind of Modifying Algorithm because they also change the order of the elements. But, sorting is more complicated and it usually takes more time than simple mutating operations.
Sorts all elements
Sorts while preserving order of equal elements
Sorts until the first n elements are correct
Copies elements in sorted order
Sorts according to the nth position