string[] array = { "How", "are", "you" };
IEnumerable<string> query =
array.OrderBy(m => m.Split().Last());
foreach (string i in query)
Console.WriteLine(i);
Console.ReadLine();
Output:
are
How
you
Loading

Join the conversation! Your thoughts help the community grow.