Fetching details from the dictionary...
putting the cart before the horse; mistaking the means for the end; getting one's priorities backwards