Skip to content

Commit

Permalink
fix: default flakes now showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 21, 2023
1 parent 6ffdace commit c0b9584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/state/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ impl FlakeCache {
let mut pairs: Vec<_> = self
.0
.iter()
.filter_map(|(k, v)| v.as_ref().map(|(t, _)| (k, t)))
.map(|(k, v)| (k, v.as_ref().map(|(t, _)| t)))
.collect();

// Sort by the timestamp in descending order.
pairs.sort_unstable_by(|a, b| b.1.cmp(a.1));
pairs.sort_unstable_by(|a, b| b.1.cmp(&a.1));

pairs.into_iter().map(|(k, _)| k.clone()).collect()
}
Expand Down

0 comments on commit c0b9584

Please sign in to comment.