Cart before the horse
To put the cart before the horse is to reverse the set order of things and first appears in English in John Heywood’s Proverbs (1546), “Set the cart before the horse.”