本末颠倒

本末顛倒
běndiāndǎo

putting the cart before the horse

Wiktionary

Entry Composition