From f56a7dde4fba2dcd0f31c5b739cd0f90175dd709 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 24 Mar 2021 19:43:59 -0400 Subject: [PATCH] Sorting by active monthly desc. --- src/crawl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crawl.rs b/src/crawl.rs index c907162..4a45c8f 100644 --- a/src/crawl.rs +++ b/src/crawl.rs @@ -42,6 +42,10 @@ pub async fn crawl( } } + // Sort by active monthly users descending + instance_details.sort_by_key(|i| i.users_active_month); + instance_details.reverse(); + Ok((instance_details, failed_instances)) }