mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
Sorting alphabetically
This commit is contained in:
parent
f2499376b1
commit
c399722959
|
@ -168,7 +168,9 @@ impl CustomList {
|
|||
}
|
||||
items
|
||||
} 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()
|
||||
.map(|node| {
|
||||
Line::from(format!("{} {}", state.theme.cmd_icon, node.name))
|
||||
|
|
Loading…
Reference in New Issue
Block a user