# SortReason

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/cache/enum-sortreason/

**enum** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
enum SortReason
```

Why a sorted change set was produced (`SortReason`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_reason.rs#L5)

## Members

- [`InitialLoad`](#variant-initialload)
- [`ComparerChanged`](#variant-comparerchanged)
- [`DataChanged`](#variant-datachanged)
- [`Reorder`](#variant-reorder)
- [`Reset`](#variant-reset)

<a id="variant-initialload"></a>

### InitialLoad

```rust
InitialLoad
```

The first batch of items (`InitialLoad`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_reason.rs#L8)

<a id="variant-comparerchanged"></a>

### ComparerChanged

```rust
ComparerChanged
```

The comparer changed (`ComparerChanged`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_reason.rs#L10)

<a id="variant-datachanged"></a>

### DataChanged

```rust
DataChanged
```

The items changed (`DataChanged`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_reason.rs#L12)

<a id="variant-reorder"></a>

### Reorder

```rust
Reorder
```

The items were sorted again, as asked (`Reorder`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_reason.rs#L14)

<a id="variant-reset"></a>

### Reset

```rust
Reset
```

The sorted collection was rebuilt, because of the size of the changes (`Reset`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/sort_reason.rs#L16)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Equivalent<K>`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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