This project is read-only.

Blog post sorting

Topics: Troubleshooting
Feb 17, 2011 at 12:38 PM


I wonder what is the logic behind sorting blog posts (both when displaying blog and in recent posts)? I have some new posts, which somehow are displayed far away:/

Eg. here - I published a post yesterday: Using the hierarchical menu Orchard module, but it gets displayed almost at the bottom, behind the older posts. It looks like the publication date isn't the one used when sorting, but the date the post was created. I created the post over a week ago, but posted yesterday when finished. Is there a workaround to fix that (even directly in the DB)?


Feb 17, 2011 at 3:14 PM

Ok, found out that posts are sorted according to the CommonPart CreatedUtc date instead of PublishedUtc date, which is the source of a problem. Changed the dates in the DB and it's ok now.

Feb 17, 2011 at 7:47 PM

There are some inconsistencies in the use of dates:

Feb 17, 2011 at 8:29 PM

Thanks for the info!