---
tag: 0B68KNPGCG
kind: concept
name: Lexicographic order
aliases: [dictionary-order, lexicographical-order]
msc: [06A05]
sources:
  - url: https://en.wikipedia.org/wiki/Lexicographic_order
    locator: Cartesian products
same_as:
  wikidata: Q1144915
  wikipedia: Lexicographic order
---

## Summary

The lexicographic order compares pairs, or words, first by the first entry, and then by the next entry when the first entries are equal.
