主客転倒 しゅかくてんとう
shukakutentō

Noun
Suru Verb

1. reversing the order of (relative) importance (of); putting the cart before the horse; the tables being turned; mistaking the insignificant for the essential; mistaking the means for the end

Yojijukugo
Other forms: