lexicographic order

Alphabetical sorting method

Lexicographic order arranges items the way words appear in a dictionary—comparing element by element from left to right.

For strings, "apple" comes before "banana" because 'a' precedes 'b'; "cat" comes before "cats" because shorter strings precede longer ones when otherwise identical.

The concept extends beyond letters to any sequence: numbers, coordinates, or data elements.

The function sorts the list in lexicographic order.

Related

well-ordering · sort · string · collation · ordinal number · sequence · taxonomy · arrangement · first · rank · lattice · traverse · successor · ASCII · dictionary · enumerate · permutation · predecessor

Categories
Opposites
ordering principle

lexicographic orderrandom order

Unpredictable arrangement

chronological order · size order · hierarchical order

structure vs. randomness

lexicographic orderunsorted

Not arranged systematically

unordered · random order · disordered · chaos · disorder

Family

order, graphic, lexicon, lexical, lexicography, lexicographer, lexicons, lexicographers, lexicographical

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G