This project has moved. For the latest updates, please go here.

Sort RSS Posts

Jul 1, 2009 at 5:21 PM

I need to sort the RSS posts so the pubDates are in descending order for a custom display. It seems like I can do this quite easily using rss.Channel.Items.Sort() but I'll need to write a custom IComparer and I can find few examples of how to do that on the Internet. Has anyone already done this or can you point to some resources for learning how to write custom Comparers?

Jul 15, 2009 at 9:09 AM

Could an alternative solution be to add a SORT Descending filter to the core lookup of the posts in the application data ?  That's assuming you are pulling posts from a database.

Jul 17, 2009 at 11:15 PM

I found the second parameter of the SelectItems method did what I needed. It reverses the order of the posts.