From d8c18ae39b4970988a9ad969fb9c2f246ea6428a Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@prodromou.name>
Date: Thu, 20 Nov 2008 09:56:19 -0500
Subject: [PATCH] break ties using profile ID for order

darcs-hash:20081120145619-84dde-e9c2c367102090425800ca78e893772a5023560a.gz
---
 lib/gallery.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gallery.php b/lib/gallery.php
index 683898d5db..fe36733540 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') {
-- 
2.39.5