refactor: variable name changes

This commit is contained in:
Jack Wills
2023-11-19 23:03:41 +00:00
parent cd1da2ad96
commit 56dba91e9a
6 changed files with 42 additions and 47 deletions
+10 -6
View File
@@ -163,12 +163,16 @@ impl AppData {
let sort_closure = |a: &ContainerItem, b: &ContainerItem| -> std::cmp::Ordering {
match head {
Header::State => match ord {
SortedOrder::Asc => {
a.state.order().cmp(&b.state.order()).then_with(|| a.name.cmp(&b.name))
}
SortedOrder::Desc => {
b.state.order().cmp(&a.state.order()).then_with(|| b.name.cmp(&a.name))
}
SortedOrder::Asc => a
.state
.order()
.cmp(&b.state.order())
.then_with(|| a.name.cmp(&b.name)),
SortedOrder::Desc => b
.state
.order()
.cmp(&a.state.order())
.then_with(|| b.name.cmp(&a.name)),
},
Header::Status => match ord {
SortedOrder::Asc => {