how to sort a vecto in stl code example Example: how to sort a vector vector<int> v; sort(v.begin(),v.end());