mirror of https://github.com/stashapp/stash.git
Sort images in galleries by path (#855)
This commit is contained in:
parent
73eb5c7a1f
commit
528b32d1b7
|
@ -222,7 +222,7 @@ func (qb *ImageQueryBuilder) FindByStudioID(studioID int) ([]*Image, error) {
|
|||
|
||||
func (qb *ImageQueryBuilder) FindByGalleryID(galleryID int) ([]*Image, error) {
|
||||
args := []interface{}{galleryID}
|
||||
return qb.queryImages(imagesForGalleryQuery, args, nil)
|
||||
return qb.queryImages(imagesForGalleryQuery+qb.getImageSort(nil), args, nil)
|
||||
}
|
||||
|
||||
func (qb *ImageQueryBuilder) CountByGalleryID(galleryID int) (int, error) {
|
||||
|
|
Loading…
Reference in New Issue