diff --git a/src/crawl.rs b/src/crawl.rs index 018ee4f..c0753b6 100644 --- a/src/crawl.rs +++ b/src/crawl.rs @@ -45,6 +45,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)) }