+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How get all the post sorted by posted date?

How get all the post sorted by posted date?

2 posts, 1 answered
  1. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    21 Nov 2010
    Link to this post
    Hi Team,

    I want to show all the post in a repeater sorted by posted date. I use forum API to load all the posts.

    is there any out of the box features provided for this purpose?

    Regards,
    tvr
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    21 Nov 2010
    Link to this post
    Hello Thavarajah,

    You can use GetRecentPosts(int start, int max) or you can use LINQ - SQL to sort the list by DateCreated of IPost.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
2 posts, 1 answered