Sorting by active monthly desc.
This commit is contained in:
parent
0fcf8fe523
commit
f56a7dde4f
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue