Skip to content

Commit

Permalink
Movie scene sorting (#4588)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogwithakeyboard committed Feb 20, 2024
1 parent cff068f commit 8b1d4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sqlite/scene.go
Original file line number Diff line number Diff line change
Expand Up @@ -1549,8 +1549,8 @@ func (qb *SceneStore) setSceneSort(query *queryBuilder, findFilter *models.FindF
direction := findFilter.GetDirection()
switch sort {
case "movie_scene_number":
query.join(moviesScenesTable, "movies_join", "scenes.id = movies_join.scene_id")
query.sortAndPagination += fmt.Sprintf(" ORDER BY movies_join.scene_index %s", getSortDirection(direction))
query.join(moviesScenesTable, "", "scenes.id = movies_scenes.scene_id")
query.sortAndPagination += getSort("scene_index", direction, moviesScenesTable)
case "tag_count":
query.sortAndPagination += getCountSort(sceneTable, scenesTagsTable, sceneIDColumn, direction)
case "performer_count":
Expand Down

0 comments on commit 8b1d4cc

Please sign in to comment.