Change default view to 'Type'

In each windows I like to have all the pdfs together, all the jpgs together and can do this by clicking on 'type'. How can I change this so that it's the default and happens to all folders when I open them?
Thanks

This should have all you need: