The String. CompareTo instance methods always perform an ordinal case-sensitive comparison . They are primarily suited for ordering strings alphabetically.
Read moreIs strcmp case-insensitive?
The strcmp subroutine performs a case-sensitive comparison of the string pointed to by the String1 parameter and the string pointed to by the String2 parameter, and analyzes the extended ASCII character set values of the characters in each string.
Read more