mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Sort images in galleries by path (#855)
This commit is contained in:
@@ -222,7 +222,7 @@ func (qb *ImageQueryBuilder) FindByStudioID(studioID int) ([]*Image, error) {
|
|||||||
|
|
||||||
func (qb *ImageQueryBuilder) FindByGalleryID(galleryID int) ([]*Image, error) {
|
func (qb *ImageQueryBuilder) FindByGalleryID(galleryID int) ([]*Image, error) {
|
||||||
args := []interface{}{galleryID}
|
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) {
|
func (qb *ImageQueryBuilder) CountByGalleryID(galleryID int) (int, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user