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".
Details and Options

- The language can be specified by a language standard name, as used in LanguageData, or by a language entity. It can also be an alphabet specification, as used in Alphabet.
- The default language is $Language.
- The following options can be given:
-
CaseOrdering Automatic how to order upper vs. lower case IgnoreCase False whether to ignore case for ordering IgnoreDiacritics False whether to ignore diacritics for ordering IgnorePunctuation False whether to ignore punctuation for ordering Language $Language what language or alphabet to assume - If an explicit language is specified in AlphabeticOrder[…,lang], it overrides any setting for the Language option.
Examples
open allclose allBasic Examples (3)
Scope (4)
Options (8)
Applications (2)
Properties & Relations (4)
Possible Issues (1)
Neat Examples (1)
See Also
Related Guides
Introduced in 2015
(10.3)