#include <algorithm>
bool isLess(myData* a, myData* b)
{
//... return *a < *b if you have defined operator< for myData
}
//...
std::sort(myVector.begin(), myVector.end(), isLess);
//..
You need to define an comparation function because you have vector of pointers instead of vector of objects.