Fixed a bug where browse results sort was case sensitive
This commit is contained in:
parent
104381af5d
commit
b6b3b8c5b0
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ impl DB {
|
||||||
|
|
||||||
let real_directories: Vec<Directory> = directories::table
|
let real_directories: Vec<Directory> = directories::table
|
||||||
.filter(directories::parent.eq(&real_path_string))
|
.filter(directories::parent.eq(&real_path_string))
|
||||||
.order(directories::path)
|
.order(sql::<types::Bool>("path COLLATE NOCASE ASC"))
|
||||||
.load(connection)?;
|
.load(connection)?;
|
||||||
let virtual_directories = real_directories
|
let virtual_directories = real_directories
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
@ -205,7 +205,7 @@ impl DB {
|
||||||
|
|
||||||
let real_songs: Vec<Song> = songs::table
|
let real_songs: Vec<Song> = songs::table
|
||||||
.filter(songs::parent.eq(&real_path_string))
|
.filter(songs::parent.eq(&real_path_string))
|
||||||
.order(songs::path)
|
.order(sql::<types::Bool>("path COLLATE NOCASE ASC"))
|
||||||
.load(connection)?;
|
.load(connection)?;
|
||||||
let virtual_songs = real_songs
|
let virtual_songs = real_songs
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
Loading…
Add table
Reference in a new issue