Can anybody please tell me why the string comparisons below deliver these results?
>>\"1040\"<=\"12000\" True >> \"1040\"<=\"1
To expand on the John P's answer, think of the strings as words, and read them left-to-right.
To look at it another way,
BAEA would come before BCAAA but after BAAAA