summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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') {