Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

AlphabeticOrder

AlphabeticOrder["string1","string2"]
gives 1 if appears before 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 , .

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Check the order of two characters:

In[1]:=
Click for copyable input
Out[1]=

Specify a language as the third argument:

In[1]:=
Click for copyable input
Out[1]=

When digraphs exist in a language, they are equivalent to corresponding pairs of ASCII characters:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.3)