Select from following answers:- from p in products orderby p.Category, p.ProductName select p

- from p in products orderby p.ProductName, p.Category select p;
- from p1 in products orderby p1.Category, from p2 in products orderby p2.ProductName select p2 select p1
- All Above
Use the OrderBy operator to order a result set. Include property names in the order that you want to sort. In this case list Category followed by ProductName.
You must list orderby property names in the order that you want to sort. In this case list Category followed by ProductName, not ProductName then Category.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator