used to describe a situation in which the most important aspect is being influenced and controlled by sb / sth that is not as important
the tail (is) wagging the dog
used to describe a situation in which the most important aspect is being influenced and controlled by sb / sth that is not as important
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition