break ties using profile ID for order

darcs-hash:20081120145619-84dde-e9c2c367102090425800ca78e893772a5023560a.gz
This commit is contained in:
Evan Prodromou 2008-11-20 09:56:19 -05:00
parent 49bb4a7b84
commit d8c18ae39b

View File

@ -105,7 +105,7 @@ class GalleryAction extends Action {
'ON profile.id = subscription.' . $lst . ' ' . 'ON profile.id = subscription.' . $lst . ' ' .
'WHERE ' . $usr . ' = ' . $profile->id . ' ' . 'WHERE ' . $usr . ' = ' . $profile->id . ' ' .
'AND subscriber != subscribed ' . 'AND subscriber != subscribed ' .
'ORDER BY subscription.created DESC ' . 'ORDER BY subscription.created DESC, profile.id DESC ' .
$lim); $lim);
if ($display == 'list') { if ($display == 'list') {