SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the localeCompare() method.
localeCompare()
string_a.localeCompare(string_b); /* Expected Returns: 0: exact match -1: string_a < string_b 1: string_a > string_b */
Further Reading: