Stop in for a cup of coffee

I’d call that putting the cart in front of the horse...when you don’t even have a horse yet.
Or a complete cart. I was thinking the same thing, but didn’t know how to word it. My brain is scrambled after today’s colossal failure.