mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Convert to lowercase when sorting bookmarks
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user