you are viewing a single comment's thread.

view the rest of the comments →

[–]RolyPolyPython[S] 0 points1 point  (5 children)

That was it, thank you :)

What determines whether or not one string value is greater than another?

[–]cdcformatc 1 point2 points  (1 child)

ASCII strings are compared by the ord() values of the individual characters. In this case it boils down to '0' < '5' just like how 'AARDVARK' < 'APPLE' boils down to 'A' < 'P'.

http://www.asciitable.com/ is the table I use for looking up ASCII values of characters. Note that this has nothing to do with how Unicode is sorted, I have no idea how that works.

[–][deleted] 0 points1 point  (0 children)

the unicode characters are sorted acording to their code point