made to order vs to the purpose

made to order

to the purpose

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