Full Site Version
using System;
using System.Collections;
using System.Linq;
public class Program
{
public static void Main()
Person[] people = {
new Person(){ FirstName="Steve", LastName="Jobs"},
new Person(){ FirstName="Bill", LastName="Gates"},
new Person(){ FirstName="Lary", LastName="Page"}
};
var list = from p in people
orderby p.LastName
select p;
Array.ForEach<Person>(list.ToArray<Person>(), p => Console.WriteLine(p.FirstName + " " + p.LastName));
}
class Person
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }