how do i sort a vector based on the sorting of another vector? this is probably an iterator question, but i have no idea how to do this.
say for instance i have three vectors: <city> <country> <population>
so the input looks something like
paris france 7812411
cairo egypt 3312310
and so on. it is easy to sort the populations in ascending order using the sort command, but how do i translate this to the string vectors to preserve the "row" order from the initial input?