From 600a44f9aec5cf39ef50173ec226be7faee5211e Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 28 Oct 2022 20:39:38 +0200 Subject: Frontend: Show results in reverse order with priority --- frontend/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 46b9232..38879f9 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -35,7 +35,7 @@ impl PartialOrd for CrawledResource { impl Ord for CrawledResource { fn cmp(&self, other: &Self) -> Ordering { - self.priority.cmp(&other.priority) + self.priority.cmp(&other.priority).reverse() } } @@ -74,7 +74,7 @@ fn osse() -> Html { html! {
//Show page title and description - {r.url.to_owned()}{"--"}{r.title.to_owned()}{"----"}{r.description.to_owned()} + {r.url.to_owned()}{"--"}{r.title.to_owned()}{"----"}{r.description.to_owned()}{format!("PRIO: {}", r.priority)}
} }) -- cgit 1.4.1