diff --git a/controllers/ViewPhotoAlbum.php b/controllers/ViewPhotoAlbum.php index 5f8c8343..036eab5a 100644 --- a/controllers/ViewPhotoAlbum.php +++ b/controllers/ViewPhotoAlbum.php @@ -90,7 +90,7 @@ class ViewPhotoAlbum extends HTMLController list($this->iterator, $total_count) = AssetIterator::getByOptions([ 'id_tag' => $id_tag, 'order' => 'date_captured', - 'direction' => 'desc', + 'direction' => $id_tag > 0 ? 'asc' : 'desc', 'limit' => self::PER_PAGE, 'page' => $page, ], true);