fix: check order of notes on each retrieval