lexicographic
Lexicographic is an adjective with two closely related uses. In lexicography, it relates to the practice and theory of compiling dictionaries and studying words. In mathematics and computer science, it describes a method of ordering objects, known as lexicographic or dictionary order.
Etymology and scope are informative here: the term derives from the Greek words for word (lexis) and
In lexicographic order, objects are compared from the first component onward. For two sequences, the first position
Applications of lexicographic ordering are widespread. It underpins dictionary sorting, string sorting in programming and databases,