Last modified: 2008-11-10 18:49:29 UTC
SMWRSSResultPrinter ignores query order when one of selected fields is date (renamed to "date") to be used as feed date. It forces the order to be descending while some queries might rely on order to be ascending. For example, I want to order my query to return 30 next conferences starting today and I limit the query to return 30 results and use "Start date" as a date like this: {{#ask:[[Category:Conference]] [[Start date::+]] [[End date::>now]] |?Start date=date |sort=date |order=asc |format=rss |searchlabel=RSS |rsstitle=TechPresentations.org: Current and Upcoming Conferences |rssdescription=Current and Upcoming conferences |limit=30 }} If I'll use "desc" order then it'll return 30 conferences starting with the last one as far in the future as system holds while I just need next 30 conferences starting today. Since the order of items within RSS feed doesn't make any difference, I propose to keep query order. Patch is attached.
Created attachment 4897 [details] Patch to keep query sort order
Re-assign to extension developer for triage/comments.
Applied patch, and inserted special case into SMWQueryProcessor to make DESC the default order for RSS (you usually want most recent items first there).