My goal is to sort the variables using the second column numbers in ascending order.
Variables to sort:
Values used for sorting. id1 represents v1, id2 represents v2 and so on.
id2 -> id5 -> id1 -> id4 ->id3
v2 -> v5 -> v1 -> v4 -> v3
As you can see, id2 is the smallest with 200 so its counterpart v2 goes to c1, the first on the list and so on. How to sort this?