AppStore search: sort local apps case independent

This commit is contained in:
relikd
2020-09-11 15:39:23 +02:00
parent e6846953b7
commit 9e19b457e2

View File

@@ -405,7 +405,7 @@ extension SQLiteDatabase {
}
func appBundleList() -> [AppBundleInfo]? {
try? run(sql: "SELECT appid, title, subtitle FROM rec WHERE appid IS NOT NULL GROUP BY appid ORDER BY title ASC;") {
try? run(sql: "SELECT appid, title, subtitle FROM rec WHERE appid IS NOT NULL GROUP BY appid ORDER BY lower(title) ASC;") {
allRows($0) {
AppBundleInfo(col_text($0, 0)!, col_text($0, 1), col_text($0, 2))
}