from side to side vs sideways

from side to side

prep
  • Moving or turning back and forth. 

sideways

adj
  • Not as planned; towards a worse outcome. 

  • In conflict (with); not compatible (with). 

  • Positioned sideways (with a side to the front). 

  • Moving or directed toward one side. 

  • Neither moving upward nor moving downward. 

adv
  • Askance; sidelong. 

  • With a side to the front. 

  • Neither upward nor downward. 

  • Towards one side. 

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