Sorting alphabetically

This commit is contained in:
afonsofrancof 2024-07-30 22:56:38 +01:00
parent f2499376b1
commit c399722959
No known key found for this signature in database

View File

@ -168,7 +168,9 @@ impl CustomList {
} }
items items
} else { } else {
self.filtered_items let mut sorted_items = self.filtered_items.clone();
sorted_items.sort_by(|a, b| a.name.cmp(b.name));
sorted_items
.iter() .iter()
.map(|node| { .map(|node| {
Line::from(format!("{} {}", state.theme.cmd_icon, node.name)) Line::from(format!("{} {}", state.theme.cmd_icon, node.name))