diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a1b244..9df5711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,11 @@ All notable changes to this project will be documented in this file. This project make usage of the [Yii Versioning Strategy](https://github.com/yiisoft/yii2/blob/master/docs/internals/versions.md). In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md). -## 1.0.1 (4. September 2018) +## 1.0.1 (22. August 2019) + Added view files for default output + Fixed readme ++ Added sorting to gallery images ## 1.0.0 (12. December 2018) diff --git a/src/models/Album.php b/src/models/Album.php index e83752f..fd4bdbf 100644 --- a/src/models/Album.php +++ b/src/models/Album.php @@ -158,7 +158,7 @@ public function getCat() */ public function getAlbumImages() { - return $this->hasMany(AlbumImage::class, ['album_id' => 'id']); + return $this->hasMany(AlbumImage::class, ['album_id' => 'id'])->orderBy(['sortindex' => SORT_ASC]); } /**