#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ValueSort {
    #[serde(rename = "isDescending")]
    is_descending: bool,
}
impl ValueSort {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(is_descending: bool) -> Self {
        Self::builder().is_descending(is_descending).build()
    }
    /// If true, numerics sort high to low, enums sort alphabetically descending, and ranges sort inRange groupings first.
    /// If false, the opposite is true for each.
    #[inline]
    pub fn is_descending(&self) -> bool {
        self.is_descending
    }
}
