expression
putting the cart before the horse
Idiomatic expression meaning to do things in the wrong order, similar to 本末転倒. Literally 'from the temple to the village', implying a reversal of the expected direction.
See also: 本末転倒
計画を立てる前に資金を集めるのは、寺から里へというものだ。
Raising funds before making a plan is putting the cart before the horse.