Reverse comment ordering

Topics: Controls, Themes
Oct 13, 2008 at 9:18 PM

I'm new to BlogEngine.NET, but have started to write a small theme for my blog-site. For the comment-listing, I would like to reverse the ordering of comments, as it doesn't seem logical to have oldest comments first while for blog-posts the newest posts are on top of the post-listing.

Would reversing the comment ordering be possible to do using themes, or do I have to change program code? By the way, I'm using a MySQL database to store posts and comments.

Regards, Thomas
Oct 14, 2008 at 7:12 PM
Ok, I fixed it although it might not be the easiest solution. In comments.cs, I changed the CompareTo-method to the following:

        public int CompareTo(Comment other)
            return other.DateCreated.CompareTo(this.DateCreated);