I created one simple class Sea
. I manually make the objects (obj1
, obj2
, obj3
) and passed them to the vector:
vector<Sea> seaVector;
seaVector.push_back(obj1);
seaVector.push_back(obj2);
seaVector.push_back(obj3);
Now, I need to sort them by name alphabetically, I guess that this doesn't work the same as sorting a vector of values. I can't swap objects, either.
Please help me, I have 4 hours before the deadline.