Modified sorting of notes