i need to compare two strings in C# by using ascii... for example
^^^ should be greater than ZZZ
and zzz should be greater than both of those...
string.compare
and compareto don't work
How to compare two strings in c# by ascii
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Sep 29, 2008, 1:36 AM EDT
Try using:
String.Compare(str1,str2, StringComparison.Ordinal)
http://msdn.microsoft.com/en-us/library/e6883c06.aspx