diff --git a/crates/polars-core/src/chunked_array/flags.rs b/crates/polars-core/src/chunked_array/flags.rs index 4ad38a48fa76..337f86e12c0e 100644 --- a/crates/polars-core/src/chunked_array/flags.rs +++ b/crates/polars-core/src/chunked_array/flags.rs @@ -100,7 +100,7 @@ impl StatisticsFlags { } pub fn is_sorted_any(&self) -> bool { - self.contains(Self::IS_SORTED_ASC | Self::IS_SORTED_DSC) + self.contains(Self::IS_SORTED_ASC) | self.contains(Self::IS_SORTED_DSC) } pub fn is_sorted_ascending(&self) -> bool { self.contains(Self::IS_SORTED_ASC)