put the cart before the horse
Short definition from Wiktionary
Verb
- To put things in the wrong order or with the wrong priorities; to put something inconsequential as more important than something more essential.
We haven’t written up put the cart before the horse yet: Simple and Standard meanings, examples and a quiz.