Is placing the folder after the page in the URL better for SEO?

I read on https://moz.com/learn/seo/url that google prioritizes the folder over the path/page. Which wold mean that a url such as:

coffeeshop.example/*home-brew-coffee*/**types** 

would perform better than

coffeeshop.example/**types**/*home-brew-coffee* 

This is something that could easily be done via a .htaccess URL redirect, but I’m wondering if it’s even worth the effort?