C#中的数组排序

来源:互联网 发布:广州恒久软件 编辑:程序博客网 时间:2024/05/07 12:22

 string[] arrstr = new string[] { "a", "cc", "b", "aa" };
        Array.Sort<string>(arrstr);
        string s = "";
        for (int i = 0; i < arrstr.Length; i++)
        {
            s += arrstr[i];
        }
        Response.Write(s);

原创粉丝点击