This mostly happens when the clinical notes have special characters in the contents, Remove special characters and it should be sorted.