in shape vs to rights

in shape

prep
  • In good condition, repair; in a good state. 

  • In a good state of physical fitness or bodily appearance. 

to rights

prep
  • Into proper order; properly. 

How often have the words in shape and to rights occurred in a corpus of books? (source: Google Ngram Viewer )