generic list sorting - order by

If you mean an in-place sort (i.e. the list is updated):

people.Sort((x, y) => string.Compare(x.LastName, y.LastName));
If you mean a new list:

var newList = people.OrderBy(x=>x.LastName).ToList(); // ToList optional

http://stackoverflow.com/questions/188141/c-list-orderby-alphabetical-order

search this blog (most likely not here)