I have column,and its output ordering (position) mapping as follows
ABC | XYZ | DEF |
1 | 3 | 2 |
Following is the actual value for each column
ABC | XYZ | DEF |
val1 | Val2 | Val3 |
I need to sort columns in the order that is based on position
ABC (1) | DEF (2) | XYZ (3) |
val1 | Val3 | Val2 |
Thanks in advance.
Krish