Give two integer vectors in c++ (same size and type), I'd like to sort one from smallest to largest element and change the order of the second vector
How do I sort a std::vector by the values of a different std::vector?