时间:2021-07-01 10:21:17 帮助过:45人阅读
protected void Page_Load(object sender, EventArgs e)
{
string s = "a;b;d;z;y;u";
string[] sa = s.Split(';');
Array.Sort(sa); //排序
for (int i = 0; i < sa.Length; i++)
{
Response.Write(sa[i].ToString() + "<br />");
}
}
执行结果: