Hi,
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:54**********************************@microsof t.com...
This is kinda hokey but seems to work:
string s = "zygwernmdkwirjdcndneyakdcmb";
char[] c=s.ToCharArray();
Array.Sort(c);
string s2=String.Empty;
foreach (char ch in c)
s2+=ch.ToString() ;
You are creating a bIG number of strings here, just use the overloaded
constructor of String ( char[] ) or use StringBuilder instead.
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation