Inversion

Inversion is when a set of words is changed or reversed to create a different meaning.

Examples
The author changed two words around to make a funny and ironic message.

“Hands up,” said Jack strongly, “whoever wants Ralph not to be chief?”

Synonyms

 * anastrophe