summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 09:56:19 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 09:56:19 -0500
commitd8c18ae39b4970988a9ad969fb9c2f246ea6428a (patch)
treeae1d52239c78d7fc5fbce7e4248722f7898db5ce
parent49bb4a7b84763b55bc76155b5533eac52e34630b (diff)
break ties using profile ID for order
darcs-hash:20081120145619-84dde-e9c2c367102090425800ca78e893772a5023560a.gz
-rw-r--r--lib/gallery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gallery.php b/lib/gallery.php
index 683898d5d..fe3673354 100644
--- a/lib/gallery.php
+++ b/lib/gallery.php
@@ -105,7 +105,7 @@ class GalleryAction extends Action {
'ON profile.id = subscription.' . $lst . ' ' .
'WHERE ' . $usr . ' = ' . $profile->id . ' ' .
'AND subscriber != subscribed ' .
- 'ORDER BY subscription.created DESC ' .
+ 'ORDER BY subscription.created DESC, profile.id DESC ' .
$lim);
if ($display == 'list') {