Sort notices by date then id so they are in the correct order when there are multiple in the same second

darcs-hash:20080713065009-533db-69d7f21d152552d7e994a0c7c7615b61a8ea592c.gz
This commit is contained in:
Mike Cochrane
2008-07-13 02:50:09 -04:00
parent 9b4d50202d
commit bdd0091e70
7 changed files with 7 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ class NoticesearchrssAction extends Rss10Action {
$q = strtolower($q);
$notice->whereAdd('MATCH(content) against (\''.addslashes($q).'\')');
$notice->orderBy('created DESC');
$notice->orderBy('created DESC, notice.id DESC');
# Ask for an extra to see if there's more.