It sorts by the first character of them, so 100
's first character is 1
so it is gonna be before 33
and 2
. Whereas the reason why -10
is before 100
is because in the python character order -
is before the numbers:
>>> ord('-')
45
>>> ord('1')
49
>>>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…