Correct sorting.

It was sorting based on the modified time of the note, not of the position.