I’m trying to order an xml file containing foods based on a specified element (calories).
I managed to get all the elements under food in a collection of IEnumerable xelements.
I’dont know if or how we can use the OrderBy and OrderByDescneding function on a collection of xelement or if there is another method.
Xml file contains the following
Two of our famous Belgian Waffles with plenty of real maple syrup
Strawberry Belgian Waffles
Light Belgian waffles covered with strawberries and whipped cream
Berry-Berry Belgian Waffles
Light Belgian waffles covered with an assortment of fresh berries and whipped cream
Please help me