Meaning & use

lexicographically

adverb·Academictechnical

Last updated

UK/ˌleksɪkəˈɡræfɪkli/
US/ˌleksɪkoʊˈɡræfɪkli/

Meanings

  1. adverbnot comparablecomputing

    In the order of a dictionary, comparing words or strings one character at a time from the start.

    Grammar: Usually follows a verb like sorted or ordered: sorted lexicographically.

    Patterns

    • sorted lexicographically
    • lexicographically smaller than something

    The program prints the file names sorted lexicographically, so file10 comes before file2.

    The word apple is lexicographically smaller than apricot.

    Strings are compared lexicographically, starting with the first character.

  2. adverbnot comparablespecialist

    In a way that relates to the writing or compiling of dictionaries.

    Grammar: Often modifies an adjective: lexicographically sound.

    Patterns

    • lexicographically speaking

    Lexicographically speaking, the two words are treated as one entry.

    The editors judged the project lexicographically ambitious.

    The term is lexicographically interesting because its meaning has shifted twice.

Common combinations

sorted lexicographically
The list was sorted lexicographically before it was saved.
ordered lexicographically
The entries are ordered lexicographically by surname.
lexicographically smallest
Find the lexicographically smallest string that can be formed.
lexicographically first
The lexicographically first permutation is abc.
compare lexicographically
Two arrays can be compared lexicographically, element by element.

Synonyms and how they differ

alphabetically
Alphabetically is the everyday word for letter order, while lexicographically also covers digits and symbols using a fixed character ranking.
in dictionary order
In dictionary order is a plain-language phrase for the same idea, and is easier for non-specialists to follow.

Opposites

Word family

lexicography noun
the practice of compiling dictionaries
lexicographer noun
a person who writes or edits dictionaries
lexicographic adjective
relating to dictionary order or dictionaries
lexicographical adjective
a longer variant of lexicographic

Commonly confused: lexicographically or alphabetically?

lexicographically vs alphabetically

Alphabetically means in the order of the alphabet. Lexicographically is the technical version used for strings that may contain digits or symbols.

Practice

In many programming languages, the string "Zebra" is placed before "apple" when the list is sorted ______.

Make it your own

Write a sentence using “lexicographically”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words