Compares strings in a case-sensitive ordinal way. The comparison is based on the values of the UTF-16 code units (not Unicode code points) they contain.
MDN - Less than (<)
Compares strings in a case-sensitive ordinal way. The comparison is based on the values of the UTF-16 code units (not Unicode code points) they contain.