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?
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?
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.