Comparing strings with numbers, how it works
1 answer
It works the same as any string comparison:
The two lines are compared lexicographically, and since the character '2'comes after the character '1', we have "20" > "10".
Take another example, taken from the comments: Given "100"and "99", we compare their first characters, see what '9'appears after '1', and therefore we get "99" > "100".
+8