0 - if both strings are identical
less than 0 - if the "right" string comes first
greater than 0 - if the "left" string comes first
Since you are only checking to see if the value is !=0, you are only looking to see if the strings are identical or not. You are not seeing which one would come first.