There is a sort() method for lists in STL. Which is absurd, because I would be more inclined to sort an array/vector.
Why isn\'t sort() provided for vector? Is there some un
A vector-specific sort would provide no advantage over std::sort from . However, std::list provides its own sort because it can use the special knowledge of how list is implemented to sort items by manipulating the links instead of copying objects.