char[] c = { 'a', 'b', 'c', 'A', 'B', 'C' };
Array.Sort(c, CaseInsensitive Comparer.Defaul t);
After this, c is ordered { 'A', 'B', 'C', 'a', 'b', 'c' }.
I want letters to be sorted together regardless of case, e.g. 'A' next to
'a'.
Why doesn't that case-insensitive sort work? What should I do instead?
Eq.
Array.Sort(c, CaseInsensitive Comparer.Defaul t);
After this, c is ordered { 'A', 'B', 'C', 'a', 'b', 'c' }.
I want letters to be sorted together regardless of case, e.g. 'A' next to
'a'.
Why doesn't that case-insensitive sort work? What should I do instead?
Eq.
Comment