sort notes by name

Simple enough. 

However, for some reason sorting is not working when adding a new note. 
Needs more investigation on this.