$s->AddOrderBy('DateCreated', 'c', $SortDirection = 'desc');
(in the original, the second argument is a 'd' for discussion).
]]>Incidentally, I know that your primary interest and focus is the main mathoverflow site, but as we found on the n-lab then the supporting sites are useful too. I've done a fair bit of hacking on the n-forum to make it useful for the n-lab gang so if you see anything over there that you like, just ask and I'll try to remember how I did it!
]]>extensions/FeedThis/library/Function.FeedThis.php
]]>
Seeing the feed reminds me of a minor modification that we made over on the n-Forum. My feed reader only displays the last entry with a given title; so if there are several comments on the same discussion then I only see the last. I think that some other feed readers do the same. This isn't a problem for me as I always click through to here - I use the feed to tell me that there's something to read here - but I know that others actually read the discussions in their readers.
What we did was to append the comment number to the title, thus making it unique. The full hack also added the person's name to the title so that in the feed reader it looks like:
Andrew Stacey comments on "RSS here" (134)
The relevant line is 181. The new version reads:
$Properties["Title"] = FormatHtmlStringInline (ForceString($Comment->AuthUsername . " comments on \"" . $Comment->Discussion . "\" (" . $Comment->CommentID . ")", "" ));
(Let me repeat: I can easily live without this if you don't want to do too much hackery here)
]]>(Take a look at the FeedThis plugin if you think that this is a good idea.)
]]>