sort notes by date