using System.Xml.Linq;
public class Example
{
public static void Main()
{
Console.Write("<< 1차 오름 정렬 >> \n");
string[] words = { "this", "code", "killer", "very", "funny" };
// 문자열 길이로 정렬.
IEnumerable<string> query = from word in words
orderby word.Length
select word;
foreach (string str in query)
Console.WriteLine(str);
Console.WriteLine(System.Environment.NewLine);
Console.WriteLine("Press any key to exit");
Console.ReadKey();
}
}