mirror of
https://github.com/stashapp/stash.git
synced 2026-04-21 22:41:33 +02:00
Make sort filter queries for name case insensitive (#183)
This commit is contained in:
parent
9e8d7bb26f
commit
a6b8a3f2e8
1 changed files with 4 additions and 0 deletions
|
|
@ -114,6 +114,10 @@ func getSort(sort string, direction string, tableName string) string {
|
|||
} else if tableName == "scene_markers" {
|
||||
additional = ", scene_markers.scene_id ASC, scene_markers.seconds ASC"
|
||||
}
|
||||
if strings.Compare(sort, "name") == 0 {
|
||||
return " ORDER BY " + colName + " COLLATE NOCASE " + direction + additional
|
||||
}
|
||||
|
||||
return " ORDER BY " + colName + " " + direction + additional
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue