To put (set) the cart before the horse.

本末倒置,本末倒置