c# list orderby string similar to code example
Example 1: how to sort string array alphabetically in c#
Array.Sort(names, (x,y) => String.Compare(x.Name, y.Name));
Example 2: sort list c# by string
ListObject = ListObject.OrderBy(item => item.Property).ToList();