From 7fb3e378ff385b12e1739f6685f8cd6112d82664 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 11 Jul 2024 16:28:14 +0200 Subject: [PATCH] Do not fail sort comparisons when the field name or target point are different --- milli/src/score_details.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/milli/src/score_details.rs b/milli/src/score_details.rs index 0a9b77e2b..1efa3b8e6 100644 --- a/milli/src/score_details.rs +++ b/milli/src/score_details.rs @@ -425,9 +425,6 @@ pub struct Sort { impl PartialOrd for Sort { fn partial_cmp(&self, other: &Self) -> Option { - if self.field_name != other.field_name { - return None; - } if self.ascending != other.ascending { return None; } @@ -466,9 +463,6 @@ pub struct GeoSort { impl PartialOrd for GeoSort { fn partial_cmp(&self, other: &Self) -> Option { - if self.target_point != other.target_point { - return None; - } if self.ascending != other.ascending { return None; }