Hello,
Is there an easy way to sort two vectors together. I have to columns of data. first column is "run_number", second column is "result".
I write them into separate vectors. I need to sort the "result" vector, lets say from the lowest to highest value, but without loosing the information which result belongs to which run number..
Can std::sort make this kind of sorting?
Any ideas will be appreciated.
Nevzat
Is there an easy way to sort two vectors together. I have to columns of data. first column is "run_number", second column is "result".
I write them into separate vectors. I need to sort the "result" vector, lets say from the lowest to highest value, but without loosing the information which result belongs to which run number..
Can std::sort make this kind of sorting?
Any ideas will be appreciated.
Nevzat