list.Sort((a, b) => a.StringProperty.CompareTo(b.StringProperty));
var sortedQuery = sampleList.OrderBy(x => x.MyProperty);