string[] arr={"cherry","apple","mango","oranges","grapes"}; var z=arr.OrderBy(a=>a.Length); foreach(var y in z) { Console.WriteLine(y); }