Skip to content

Commit

Permalink
sort by time decending so newest results appear on top
Browse files Browse the repository at this point in the history
  • Loading branch information
DolceTriade committed Jan 13, 2024
1 parent ad61e3a commit 850ea7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blade/components/targetlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn sorted_targets(targets: &HashMap<String, state::Target>) -> Vec<state::Target
return a_status.partial_cmp(&b_status).unwrap();
}
if a.end != b.end {
return a.end.cmp(&b.end);
return b.end.cmp(&a.end);
}
a.name.partial_cmp(&b.name).unwrap()
});
Expand All @@ -55,6 +55,9 @@ fn sorted_tests(tests: &HashMap<String, state::Test>) -> Vec<state::Test> {
if a_status != b_status {
return a_status.partial_cmp(&b_status).unwrap();
}
if a.end != b.end {
return b.end.cmp(&a.end);
}
a.name.partial_cmp(&b.name).unwrap()
});
vec.into_iter().cloned().collect::<Vec<_>>()
Expand Down

0 comments on commit 850ea7f

Please sign in to comment.