Order albums chronologically ascending.

This commit is contained in:
Aaron van Geffen 2016-09-03 21:37:50 +02:00
parent 0341f73d09
commit 6f94df04f0
1 changed files with 1 additions and 1 deletions

View File

@ -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);