日期:2014-05-18 浏览次数:20409 次
string s = "1e569TEW"; byte[] bs = Encoding.ASCII.GetBytes(s); bs = bs.OrderBy(b => b).ToArray(); s = Encoding.ASCII.GetString(bs); ------解决方案-------------------- str=new string(str.ToCharArray().OrderBy(c=>c).ToArray());