Sorting parallel vectors

This is a discussion on Sorting parallel vectors within the C++ Programming forums, part of the General Programming Boards category; I have some parallel vectors that need to be sorted. With my knowledge I set them up to be sorted ...

Well, since I've only covered arrays, I setup as above using swap. As you guys know there is no swap in vectors. Can anybody give me a hint as to what to look for? I know there is a sort function but I need to sort the vectors in parallel.