AlphabeticOrder
AlphabeticOrder["string1", "string2"] gives 1 if "string1" appears before "string2" in alphabetical order, -1 if it is after, and 0 if it is identical.
AlphabeticOrder["string1", "string2", lang] uses an ordering suitable for the language lang.
AlphabeticOrder[lang] represents an operator form that compares strings when applied to "string1", "string2".
Examples
Compare two strings:
AlphabeticOrder["apple", "banana"]
(* 1 *)Please visit the official Wolfram Language Reference for more details.