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
generic list sorting - order by
Gönderen
pantepember
30 Mayıs 2011 Pazartesi
Etiketler: generic list , generic list sorting