Question: are the tail wagging the dog?
Answer: the tail is wagging the dog. If you say that the tail is wagging the dog, you mean that a small or unimportant part of something is becoming too important and is controlling the whole thing.