What is a figure in which the same words or ideas are repeated in transposed order called?

antimetabole — A figure in which the same words or ideas are repeated in transposed order. (Webster's 1913.)

Sources