0

I don't need to compare strings, I need to retrieve rules, that StringComparer uses for each culture to use them somewhere else.

Basically I need to get characters order for each culture.

I understand that it's not really C# related, because I need the data, not to make some code work. But since C# has System.Globalization it should have all data I need somewhere.

user64675
  • 482
  • 7
  • 25
  • `var comparer = StringComparer.Create(CultureInfo.GetCultureInfo("ru-RU"), false);` put actual culture instead of russian `"ru-RU"` โ€“ Dmitry Bychenko Jul 18 '18 at 12:30
  • 1
    Rules are complex, for instance in Russian Culture `ะต` and `ั‘` are not distinguished when sorting; see for detail https://en.wikipedia.org/wiki/Alphabetical_order โ€“ Dmitry Bychenko Jul 18 '18 at 12:36

0 Answers0