yes.. after I couldn't understand the results I was getting so I had a look at your script . I could see it was searching for notes in the last 7 days...
I had over 100 entries in the last 7 days. So I went and looked at what were the notes from 7 days ago - and those were the ones that were showing at the top of the list.. then some from 6 days ago, then that was all the were shown.
so.. I expect if you only had about 18 or less notes in the last 7 days, it would show you all of them - oldest first.
on the shortcuts - it's just notes in my shortcut list - and it reliably finds the first one on the list, but no others. I checked by moving them around - if I move a different shortcut to be first on my list then it finds that, but not any others. It's like the the script is not finding the delimiter you are expecting between the list items.