Click the “Sort notes by” pop-up menu, then choose an option.
The option you choose applies to notes in all folders.
Pinned notes always appear at the top of the list of notes.
In the Notes app Customize toolbars on Mac