Note on comparisons:
lexicographic comparison between strings A string s precedes a string t in lexicographic order

if s is a prefix of t,
or if c and d are respectively the first character of s and t in which s and t differ, then c precedes d in character order.

Note:
For the characters that are alphabetical letters, the character order coincides with the alphabetical order.

Digits precede letters, and uppercase letters precede lowercase ones.

Example:
house precedes household
Household precedes house
composer precedes computer
H2O precedes HOTEL

Note on comparisons:
lexicographic comparison between strings A string s precedes a string t in lexicographic order

if s is a prefix of t,
or if c and d are respectively the first character of s and t in which s and t differ, then c precedes d in character order.

Note:
For the characters that are alphabetical letters, the character order coincides with the alphabetical order.

Digits precede letters, and uppercase letters precede lowercase ones.

Example:
house precedes household
Household precedes house
composer precedes computer
H2O precedes HOTEL