mirror of https://github.com/stashapp/stash.git
Make sort filter queries for name case insensitive (#183)
This commit is contained in:
parent
9e8d7bb26f
commit
a6b8a3f2e8
|
@ -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 New Issue