Swap attribute order