I have two vectors, one for distance information, the other for correlation data which are stored in the corresponding positions as the distance data. I wanna sort the distance vector and also sort the correlation data according to the changes in the distance vector. How can I do that?