Org-mode has already been mentioned, but I wanna add that with switching between several notes app, it became clear that the outliner structure is the best for me, specifically with shitloads of nested notes (not exaggerating, I have tens of thousands of short one-line notes in there). I want to be able to add a short note quickly and be able to move them around easily — though I’m also not too good at organizing them regularly, so it’s best if I add it in the correct place from the start. As a bonus, Org-mode allows for custom code working on the notes, by the way of Emacs Lisp.
On Android, I use Orgzly, with the files being synced via Syncthing. This does sometimes lead to conflicts between the desktop and mobile changes, which must be fixed manually.