Introduce the new Sort criterion and AscDesc enum

This commit is contained in:
Kerollmops
2021-08-17 15:05:00 +02:00
parent 5b88df508e
commit 687cd2e205
4 changed files with 64 additions and 9 deletions

View File

@ -90,6 +90,7 @@ pub fn expected_order(
new_groups
.extend(group.linear_group_by_key(|d| d.proximity_rank).map(Vec::from));
}
Criterion::Sort => todo!("sort not supported right now"),
Criterion::Typo => {
group.sort_by_key(|d| d.typo_rank);
new_groups.extend(group.linear_group_by_key(|d| d.typo_rank).map(Vec::from));