Flip html tag order