Chiasmus

Webster's Dictionary of the English Language

·noun An inversion of the order of words or phrases, when repeated or subsequently referred to in a sentence.