If you came to the Mac from Windows or Linux, Finder’s default sort probably bugs you: folders and files get mixed together alphabetically. There’s a setting that puts the folders first, and I think it should be on by default.
Open Finder Settings, click Advanced and look for Keep folders on top. It has two separate checkboxes: In windows when sorting by name, and On Desktop.
Finder > Settings (Command-,) > Advanced
Keep folders on top:
[x] In windows when sorting by name
[x] On Desktop
With the first one on, a project folder shows its subfolders alphabetically at the top and the loose files alphabetically below them, which is how most file managers on other systems already behave. A Downloads folder full of zip files and the folders they unpacked into gets much easier to scan this way.
The second checkbox does the same on the desktop. I’d turn that one on too if your desktop doubles as a dumping ground, so the folders sit together instead of being scattered between screenshots.
The caveat is in the wording of the first option: it only applies when the window sorts by name. Sort by Date Modified or Size and Finder mixes folders and files again. That’s on purpose, but it can look like the setting stopped working when you only switched the sort column.
Further reading: Change Finder settings on Mac (Mac User Guide)