To put one’s nose out of joint is to supplant a person in another’s good graces. To put another person’s nose where yours is now. There is a good French locution, “Lui couper lʹherbe sous le picd.” (In Latin, “Aliquem de jure suo dejicere.”) Sometimes it means to humiliate a conceited person.