How does String.CompareTo work?
1 answer
From MSDN :
Certain non-alpha-numeric characters may have special weights, theirs. For example, a hyphen ("-") may have very little weight assigned to it so that "coop" and "coop" appear next to each other in a sorted list.
Edit: Forgot to mention, this has to do with the enum CompareOptions
used string.Compare
.
+8
source to share