I\'m comparing strings with comparison operators.
I needs some short of explanations for the below two comparisons and their result.
if(\'ai\' >
To expand on @coderabbi's answer:
It is the same type of logic as when you order by number in some applications and get results like the following:
It's not based on string length, but rather each character in order of the string.