Flip code/visual order of tokens and input