Move columns on condition

Is there a way to do dynamic column reordering based on the mapping table somehow?

Given the following table in easy morph:

And the following mapping columns.
image

How can we dynamically reorder them, so result is as follows:

Thank you for any pointers and/or suggestions

Hi Ruslan,

Check out this topic: How to order columns by a list of columns