# compare_values

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactivity/helpers/member_lookup/function-compare_values/

**function** · [`ferroui-xaml-interactivity`](/docs/0.5.0/api/ferroui-xaml-interactivity/) · v0.5.0

```rust
fn compare_values(left: &ferroui_base::BoxedValue, right: &ferroui_base::BoxedValue) -> Option<std::cmp::Ordering>
```

Compares two values that are comparable with each other (`IComparable.CompareTo`): numbers,
text, characters, booleans, enumerations and the types with a registered comparer. `None` when
they are not comparable with each other.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/member_lookup.rs#L74)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
