turn upside down
Put in disorder, mix or mess up, as in He turned the whole house upside down looking for his checkbook. This metaphoric phrase transfers literally inverting something so that the upper part becomes the lower (or vice versa) to throwing into disorder or confusion. [First half of 1800s]