Check out example codes for "return from r in restaurants orderby r.Name select r c#". It will help you in understanding the concepts better.

Code Example 1

using System.Linq "Add on top of the Page"

Learn ReactJs, React Native from akashmittal.com