我希望在用逗號分割文本框後顯示一個文本數組,然後將一串數字傳入到textbox1中,並用逗號分隔它,我如何按降序對數字進行排序。這裏是我得到的方法至今c#拆分數組並在文本框中以降序顯示
private void btnCalc_Click(object sender, EventArgs e)
{
//string A = txtInput.Text;
string[] arrText = txtInput.Text.Split(',');
int[] newOne = new int[]{};
foreach (string r in arrText)
{
}
txtOutput.AppendText();
}