MCMS ChannelItem.StartDate

  • Thread starter Thread starter Ray S via .NET 247
  • Start date Start date
R

Ray S via .NET 247

(Type your message here)
Can anyone show me how to sort items using ChannelItem.StartDate property.
I need to sort items so that the most recent items is at the top.
Thanks
 
Ray,

It depends on what the ChannelItem instances are stored in. You can
just put them all in an array, then pass it to the static Sort method on the
Array class. You would have to implement the IComparer interface and then
access the ChannelItem instances in the implementation, determining which is
more recent.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top