From 55c598d09d6268f97181e17c080d5f6a99545a4e Mon Sep 17 00:00:00 2001 From: Marco Neumann Date: Thu, 16 Feb 2023 14:03:27 +0100 Subject: [PATCH] feat: impl `Ord`/`PartialOrd` for `SortOptions` (#3723) --- arrow-schema/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow-schema/src/lib.rs b/arrow-schema/src/lib.rs index 6bc2329dbd36..3c2af577c2a6 100644 --- a/arrow-schema/src/lib.rs +++ b/arrow-schema/src/lib.rs @@ -30,7 +30,7 @@ pub use schema::*; pub mod ffi; /// Options that define the sort order of a given column -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd)] pub struct SortOptions { /// Whether to sort in descending order pub descending: bool,