本末顛倒

Idiom

 * 1) putting the cart before the horse