csharp list sort by property string

Code Example - csharp list sort by property string

                
                        var sortedQuery = sampleList.OrderBy(x => x.MyProperty);