Your comments

Not quite, because of possible conflicts.
But I guess it can be usable if notes are rarely modified.
Just take your database and replace sensitive data with arbitrary text. But it's important that you don't delete notes.
Could you provide me with some minimal database where the error occurs? It would help debugging immensely.

Export/Selected command exports notes in the order they currently appear on screen.