To have one's knickers in a twist is to be in a state of irritation and distraction.