Hi there,

that might be a really simple question, but we are completely clueless how to answer it.

We have two tables, one column of each table contains the same variables, but in different order. We want to sort the second table in such a way that it matches the order in the first one. I hope it gets a little bit clearer with the following illustration:

EDIT: Instead of X2 = 12 in the right table it should be "X2 = 4.3"

Does someone has an idea how to do it in R?

Thank you and best regards,

Alexander