MCMS ChannelItem.StartDate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ray S via .NET 247

    MCMS ChannelItem.StartDate

    (Type your message here)
    Can anyone show me how to sort items using ChannelItem.Sta rtDate property.
    I need to sort items so that the most recent items is at the top.
    Thanks
    --------------------------------
    From: Ray S

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>694dVbfX7k2 C9kz0okaWUA==</Id>
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: MCMS ChannelItem.Sta rtDate

    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.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Ray S via .NET 247" <anonymous@dotn et247.com> wrote in message
    news:%236Mt0zFa FHA.3184@TK2MSF TNGP15.phx.gbl. ..[color=blue]
    > (Type your message here)
    > Can anyone show me how to sort items using ChannelItem.Sta rtDate property.
    > I need to sort items so that the most recent items is at the top.
    > Thanks
    > --------------------------------
    > From: Ray S
    >
    > -----------------------
    > Posted by a user from .NET 247 (http://www.dotnet247.com/)
    >
    > <Id>694dVbfX7k2 C9kz0okaWUA==</Id>[/color]


    Comment

    Working...