Building on my previous post (Is there a difference in the ways that the content is returned?
), for events I am using the following (the code has been simplified for illustration):
ContentManager contentMan =
// Get the start date.
DateTime startDate = DateTime.Parse(itemContent.GetMetaData(
However, the content is being returned in, what appears to be, random order (although I suspect that it is the order that it was created). Is there a way that I can get the content to return in the correct order, or do I have to use the EventsManager
to achieve this?
I have simplified the code since it is fairly generic and shared between other content items such as News
When retrieving content in this way, what order is the content returned in by default and what Sort Expressions
can be used?