From MSDN:
string.CompareTo:
Compares this instance with a specified object or String and returns
an integer that indicates whether this instance precedes, follows, or
appears in the same position in the sort order as the specified object
or String.
string.Equals:
Determines whether two String objects have the same value.
In short, CompareTo
is used for sorting. Equals
is used to determine equality.