mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
Sorting alphabetically
This commit is contained in:
parent
f2499376b1
commit
c399722959
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user