Hi,
Well, your code isn't compiling. Why don't you put string splitting and array sorting into a method, so code looks like this:
Code:
class lala
{
string ui = "Microsoft .NET Framework Application Development Foundation";
// this method does the string splitting etc.
public void ArraySorterMethod()
{
string[] ui2 = ui.Split(' ');
Array.Sort(ui2);
// output string values or whatever you like to do
foreach(string s in ui2)
Console.WriteLine(s);
}
}
that way you can call the code from main method.