vb.net - Compare Two Hebrew Strings Alphabetically -


i know can use string.compare(stringa, stringb) compare 2 strings , see 1 comes first alphabetically

however, tried 2 hebrew strings, , doesn't compare alphabetically.

is there way this, or have change encoding?

try

string.compare(stringa, stringb, new cultureinfo("he"), compareoptions.none) 

where he code hebrew.

there several overloads compare. here documentation example above.


Comments