Sorting by active monthly desc. #6

Merged
nutomic merged 1 commit from sort_active_monthly into main 2021-04-27 13:10:50 +00:00

View file

@ -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)) Ok((instance_details, failed_instances))
} }