sort in lexicographical order

/sɔːrt ɪn ˌlɛksɪkəˈɡræfɪkəl ˈɔːrdər/

verb phrase

  1. To arrange items, especially words or strings, in the order they would appear in a dictionary, comparing them character by character from left to right.

    B2

    transitive; often used in computing

    • "Sort the names in lexicographical order."B1
    • "The program sorts the strings in lexicographical order, comparing each character from left to right."B2
    • "The program sorts the file paths in lexicographical order so that 'apple' comes before 'banana'."C1
  2. In computing, to compare sequences element by element using their character codes, so that uppercase letters may come before lowercase ones.

    C1

    technical

    • "Because of ASCII values, sorting in lexicographical order puts 'Z' before 'a'."C1

Collocations

Word family