i just wrote a code that will sort the textbox but i want to know is there any other ways that does not require an intermediate array?!(just to improve performance)
here's the code i wrote:
string[] textbox = new string[textBox1.Lines.Length];
textbox = textBox1.Text.Split('\r');
textBox1.Clear();
Array.Sort(textbox);
foreach(string text in textbox)
{
textBox1.AppendText(text + "\r\n");
}