Switch to a new operating system and there are all sorts of little difference to get used to. The way macOS sorts folders and files is one of those things for migrating Windows users.
Both operating systems sort files alphabetically, with one key difference: Windows puts folders at the top of the list, then shows files, while macOS mixes files and folders together in alphabetical order. Until recently, the only way to change this involved turning off System Idenentity Protection and modifying the Finder.
No longer. Among the many new features in macOS Sierra is a humble checkbox in the Finder preferences that, when clicked, separates folders from files, just like it works in Windows and Linux systems.
To get started, launch the Finder. Next, head to Finder > Preferences in the menu bar.
This will bring up the options. Make sure that “Keep folders on top when sorting by name” is checked.
Just like that, your files will be sorted with folders on the top.
This is much easier than it was pre-Sierra. It’s not exactly an innovative new feature, but it will make life just a little bit easier for switchers, or anyone who prefers it when folders are sorted separately from other documents.