Check out example codes for "how to sort string array alphabetically in c#". It will help you in understanding the concepts better.

Code Example 1

Array.Sort(names, (x,y) => String.Compare(x.Name, y.Name));

Learn ReactJs, React Native from akashmittal.com