If you toss a coin and it comes down tails, you can see the side of it that does not have a picture of a head on it.
PHRASE
主次颠倒;喧宾夺主
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.