Implemented sort on notes list