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