mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Enable sorting for galleries (#437)
This commit is contained in:
@@ -139,13 +139,13 @@ func (qb *GalleryQueryBuilder) Query(findFilter *FindFilterType) ([]*Gallery, in
|
|||||||
func (qb *GalleryQueryBuilder) getGallerySort(findFilter *FindFilterType) string {
|
func (qb *GalleryQueryBuilder) getGallerySort(findFilter *FindFilterType) string {
|
||||||
var sort string
|
var sort string
|
||||||
var direction string
|
var direction string
|
||||||
//if findFilter == nil { // TODO temp until title is removed from schema and UI
|
if findFilter == nil {
|
||||||
sort = "path"
|
sort = "path"
|
||||||
direction = "ASC"
|
direction = "ASC"
|
||||||
//} else {
|
} else {
|
||||||
// sort = findFilter.getSort("path")
|
sort = findFilter.GetSort("path")
|
||||||
// direction = findFilter.getDirection()
|
direction = findFilter.GetDirection()
|
||||||
//}
|
}
|
||||||
return getSort(sort, direction, "galleries")
|
return getSort(sort, direction, "galleries")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user