We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7730fe3 commit f67e19bCopy full SHA for f67e19b
1 file changed
nmrs-gui/src/ui/header.rs
@@ -339,7 +339,7 @@ pub async fn refresh_networks(
339
(None, None)
340
};
341
342
- nets.sort_by(|a, b| b.strength.unwrap_or(0).cmp(&a.strength.unwrap_or(0)));
+ nets.sort_by_key(|b| std::cmp::Reverse(b.strength.unwrap_or(0)));
343
344
let mut seen_combinations = HashSet::new();
345
nets.retain(|net| {
@@ -473,7 +473,7 @@ pub async fn refresh_networks_no_scan(
473
474
475
476
477
478
479
0 commit comments