I am trying to sort a Vector by another Vector.
For Example:
vct1.push_back("need");
vct1.push_back("to");
vct1.push_back("sort");
vct1.push_back("this");
then we habe vct2 which contains:
vct2.push_back("to");
vct2.push_back("need");
vct2.push_back("this");
vct2.push_back("sort");
vct2.push_back("other"); //can be ignored
vct2.push_back("string"); //can be ignored
So now i want to sort my vct2 by vct1 the result should be something like this:
vct2->results
_____________
need
to
sort
this
other
string