sort a list of strings c# code example
Example 1: array sort c#
Array.Sort(myArray);
Example 2: c# list sort by property string
list.Sort((a, b) => a.StringProperty.CompareTo(b.StringProperty));
Array.Sort(myArray);
list.Sort((a, b) => a.StringProperty.CompareTo(b.StringProperty));