mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Make sort filter queries for name case insensitive (#183)
This commit is contained in:
@@ -114,6 +114,10 @@ func getSort(sort string, direction string, tableName string) string {
|
|||||||
} else if tableName == "scene_markers" {
|
} else if tableName == "scene_markers" {
|
||||||
additional = ", scene_markers.scene_id ASC, scene_markers.seconds ASC"
|
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
|
return " ORDER BY " + colName + " " + direction + additional
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user