Convert to lowercase when sorting bookmarks

This commit is contained in:
ChristianVisintin
2021-02-26 08:13:38 +01:00
parent 0173d67a3b
commit e948d598b0

View File

@@ -266,7 +266,9 @@ impl AuthActivity {
/// ///
/// Sort bookmarks in list /// Sort bookmarks in list
fn sort_bookmarks(&mut self) { fn sort_bookmarks(&mut self) {
self.bookmarks_list.sort(); // Conver to lowercase when sorting
self.bookmarks_list
.sort_by(|a, b| a.to_lowercase().as_str().cmp(b.to_lowercase().as_str()));
} }
/// ### sort_recents /// ### sort_recents