mirror of
https://github.com/stashapp/stash.git
synced 2025-12-31 04:33:04 +01:00
Enable sorting for galleries (#437)
This commit is contained in:
parent
e58c311ddd
commit
8a6fff61ae
1 changed files with 7 additions and 7 deletions
|
|
@ -139,13 +139,13 @@ func (qb *GalleryQueryBuilder) Query(findFilter *FindFilterType) ([]*Gallery, in
|
|||
func (qb *GalleryQueryBuilder) getGallerySort(findFilter *FindFilterType) string {
|
||||
var sort string
|
||||
var direction string
|
||||
//if findFilter == nil { // TODO temp until title is removed from schema and UI
|
||||
sort = "path"
|
||||
direction = "ASC"
|
||||
//} else {
|
||||
// sort = findFilter.getSort("path")
|
||||
// direction = findFilter.getDirection()
|
||||
//}
|
||||
if findFilter == nil {
|
||||
sort = "path"
|
||||
direction = "ASC"
|
||||
} else {
|
||||
sort = findFilter.GetSort("path")
|
||||
direction = findFilter.GetDirection()
|
||||
}
|
||||
return getSort(sort, direction, "galleries")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue