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
More Related Contents:
- How to Sort a List by a property in the object
- C# List sorting with multiple range
- Convert generic List/Enumerable to DataTable?
- How to remove elements from a generic list while iterating over it?
- How do I clone a generic list in C#?
- ArrayList vs List in C#
- Remove duplicates from a List in C#
- List or IList [closed]
- How to create List of open generic type of class?
- How can I get every nth item from a List?
- Does .NET have a way to check if List a contains all items in List b?
- convert a list of objects from one type to another using lambda expression
- XML Serialize generic list of serializable objects
- Combination of List
- Is it worthwhile to initialize the collection size of a List if it’s size reasonably known?
- How to initialize a List to a given size (as opposed to capacity)?
- Generic List – moving an item within the list
- Sorting an IList in C#
- sort string-numbers [duplicate]
- How can I sort a List by multiple T.attributes?
- Fastest way to Remove Duplicate Value from a list by lambda
- How do I check if a given value is a generic list?
- Console.WriteLine and generic List
- C# list.Orderby descending
- List complex sorting
- How to sort a list / array of string version number?
- Sort one list by another
- Cast Object to Generic List
- How to convert c# generic list to json using json.net?
- Convert DataTable to Generic List in C#