Sort notices on the public page where they were posted in the same second

darcs-hash:20080713042238-533db-d55470e31ebaf8cda8c1ccee0cdc1bd5c58bd69a.gz
This commit is contained in:
Mike Cochrane 2008-07-13 00:22:38 -04:00
parent 800c2e9a09
commit 464e70ac5d

View File

@ -65,7 +65,7 @@ class PublicAction extends StreamAction {
$notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)'); $notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)');
$notice->orderBy('created DESC'); $notice->orderBy('created DESC, notice.id DESC');
# We fetch one extra, to see if we need an "older" link # We fetch one extra, to see if we need an "older" link