To proceed opposite to the normal sequence of events rather than doing it correctly
John Heywood’s A Dialogue conteinyng the nomber in effect of all the Prouerbes in the Englishe tongue, 1589: To tourne the cat in the pan, Or set the cart before the hors