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

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

posted on 2007-03-23 11:47  Jack Niu  阅读(460)  评论(2编辑  收藏  举报

Affiliate Marketing and Web Technology