I need the order of the contents in one column to match the order of the contents in another. For example:

Column A:
A
C
D
N
G

Column B:
C
D
G
N
A

How can I make it so column A's contents match the order of column B's contents assuming both columns have the exact same information, just in a different order? I want to be able to do this without having to copy and paste to move things around. I have documents with thousands of rows that need to match a specific order.

Thanks!