I cannot decide how to sort the output from the request in an XML file in isolated storage by day, which is the value in the XML file.
By this I mean that it will be sorted by the first letter of the day, so it will return on Friday as the first (due to the “F” in it). But this is not what I want, instead they should be sorted on weekdays, that is, on Monday, Tuesday, Wednesday, Thursday, Friday.
Is there any way to convert a string containing a day in the text, for example. Monday in DateTime to sort by?
The code I use looks like this:
let obv = (string)query.Element("day")
orderby obv
select new obv
Jamie source
share