From 0c40ef6911f1145865d8fa0b47820e20c3e9a4b1 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 6 Jun 2023 18:21:31 +0200 Subject: [PATCH] Fix sort id --- milli/src/search/new/sort.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/search/new/sort.rs b/milli/src/search/new/sort.rs index 3f57b2aa5..3e66ef2bc 100644 --- a/milli/src/search/new/sort.rs +++ b/milli/src/search/new/sort.rs @@ -67,7 +67,7 @@ impl<'ctx, Query> Sort<'ctx, Query> { impl<'ctx, Query: RankingRuleQueryTrait> RankingRule<'ctx, Query> for Sort<'ctx, Query> { fn id(&self) -> String { let Self { field_name, is_ascending, .. } = self; - format!("{field_name}:{}", if *is_ascending { "asc" } else { "desc " }) + format!("{field_name}:{}", if *is_ascending { "asc" } else { "desc" }) } fn start_iteration( &mut self,