mettre la charrue avant les bœufs

Etymology
lit. 'to put the cart before the oxen'.

Verb

 * 1)  to put the cart before the horse to put things in the wrong order or with the wrong priorities; to put something inconsequential as more important than something more essential