Compares two String objects by evaluating the numeric values of the corresponding characters in the two string values represented by the objects.
The first String object.
The second String object.
An integer that indicates the lexical relationship between the two comparands. The following table lists the possible return values.
str1 is less than str2.
str1 is equals str2.
str1 is greater than str2.
Minimum supported client: Windows 8
Minimum supported server: Windows Server 2012