Keywords: Standard Template Library
Q. What's up with sorting in STL?
A. I am sure there is a reason but it seems inconsistent to me.
To sort a vector:
std::sort(a); // Use sort() from algorithm!
To sort a list:
b.sort(); // Use the sort member!
Perhaps this is because its easy to reorder elements in a list
but not a vector.