how do I sort a vector array ?

Can someone help me with how to sort a vector array?
I tried sort(array.begin(), array.end()); and it didn't work the game starts and then gives me an error and says it must close?
Thank you!
1
2
3
4
5
sort(vector.begin(), vector.end());
for(iter = vector.begin(); iter != vector.end(); ++iter)
{
      cout << *iter << endl;
}
Sorry! I took my own advice that I gave to someone else on here and read some of the site. lol
anyway, Thanks!
Topic archived. No new replies allowed.