to put something in the opposite position to the one it was in before, especially by turning it upside down (=the bottom is on the top and the top is on the bottom)
Definition from the Longman Dictionary of Contemporary English Advanced Learner's Dictionary.