23 Feb
2005
23 Feb
'05
15:21
This should be pretty simple. I can't for the life of me find the answer on google or remember to look through my books at home. Figure I'll just ask here and see what happens. I have a vector or ints or unsigned ints vector<unsigned int> vec vec.push_back(1); vec.push_back(1); vec.push_back(1); And I want to sort it Descending. When I call std::sort(vec.begin(), vec.end()); it sorts ascending. What would I add for the third parameter to get it to sort descending instead? B-)