Answers for "how to sort a list of objects by string of object c#"

C#
1

c# list sort by property string

list.Sort((a, b) =>  a.StringProperty.CompareTo(b.StringProperty));
Posted by: Guest on January-19-2021
0

c# list sort by property string

var sortedQuery = sampleList.OrderBy(x => x.MyProperty);
Posted by: Guest on January-19-2021

Code answers related to "how to sort a list of objects by string of object c#"

C# Answers by Framework

Browse Popular Code Answers by Language