We have a Drupal 7 site producing an rss feed consumed by Ellucian Portal (built on top of Microsoft SharePoint). There is a "web part" (I think that's SharePoint's term) which lists the 5 item titles from the feed in reverse order. Our feed comprises 10 items which means that SharePoint is listing titles 10 through 6 instead of 1 - 5. Ugh. I don't know if the order reversal is a SharePoint thing or an Ellucian thing.
We're generating the view in the standard Drupal way with the View module.
I can think of 4 types of solutions to try.
Change the sort order setting in the Views UI. That won't work. If we have 20 nodes to pull from, we'll be feeding items 20 through 11 instead of 10 through 1. The Portal will nicely list items 11 through 15, but that's still not what we want.
Limit our feed to only 5 items. Then at least Ellucian/SharePoint will list the right items. That'll work but is sub-optimal: this is a feed of upcoming events and it'd be better to have the the nearest event first.
Convince Ellucian Portal not to reverse the order of the feed. This would certainly be the best solution if it is doable. The Keeper of the Portal has not found a way to do this. I don't know whether that's the incompetence of the Keeper, of Ellucian, or of SharePoint.
Resort the feed in our Drupal site after Views picks out 10 items for the feed. The closest to a promising place to do this I've found is to override the Views module's template_preprocess_views_view_rss() function. By then, the items part of the the xml has been generated. I'd have to parse it into individual items to resort. Doable but ugly. It'd be nice to find someplace I can simply apply reverse_array().
Any ideas? SharePoint or Portal experts might help me help the Keeper of the Portal. Or Drupal experts might help me find a better place to resort the feed. Or whatever else you have.