Added code to search notes and sort notes by name and created date