Flip table columns

This will change the position of the table columns.

This code snippet was originally contributed by guest_chatz3y.