本末倒置

Idiom

 * 1) putting the cart before the horse