just what the doctor ordered vs what the doctor ordered

just what the doctor ordered

what the doctor ordered

noun
  • Exactly what is necessary or useful in a given situation; something very beneficial or desirable. 

How often have the words just what the doctor ordered and what the doctor ordered occurred in a corpus of books? (source: Google Ngram Viewer )