Shortlex order
From Wikipedia, the free encyclopedia
The shortlex (or radix, or length-plus-lexicographic) order is an ordering for ordered sets of objects, where the sequences are primarily sorted by cardinality (length) with the shortest sequences first, and sequences of the same length are sorted into lexicographical order.