be knocked down a peg (or two)
To have one's ego or pride reduced or damaged; to be humbled or humiliated. I hope that pompous oaf has been knocked down a peg or two after losing his court case. If Sarah keeps acting like a spoiled brat to everyone, she's going to be knocked down a peg some day.