将string的各个字符按照ASCII排序后,重新生成一个string的代码

public static string OrderWord(string _source)
{
    char[] temp = _source.ToCharArray();
    Array.Sort(temp);
    return temp.ToString();
}

原文地址:https://www.cnblogs.com/skywind/p/685101.html