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.
 
Back
Top