summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-13 02:50:09 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-13 02:50:09 -0400
commitbdd0091e7077e09f1c8eb5dfc2b6e6ff2aa1fb8c (patch)
treecfdac757307f959780c7de6ee92a4a8cbb136749 /classes/Profile.php
parent9b4d50202d898e98be2a1ee72d02e5ccbc858f8c (diff)
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
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index dba7ca8a5..d482e8d28 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -145,7 +145,7 @@ class Profile extends DB_DataObject
if ($dt) {
$notice->whereAdd('created < "' . $dt . '"');
}
- $notice->orderBy('created DESC');
+ $notice->orderBy('created DESC, notice.id DESC');
$notice->limit(1);
if ($notice->find(true)) {
return $notice;