Sort list in C# with LINQ

Viewed 223076

I want to sort a list in C#.

Like where structure property AVC goes to true then show them first then AVC goes to false. Are any way to do this in C# LINQ?

4 Answers

A syntax alternative for the accepted answer:

list = from item in list
       orderby item.AVC
       select item;

Keep in mind that "list" is now an IEnumerable object and not a List one.

Related