Table of Contents

Method SortByIdentityDescending

Namespace
SodaFlow.Collections
Assembly
SodaFlow.Collections.dll

SortByIdentityDescending<TKey, TIdentity, TState, TSortKey>(ReactiveCollection<TKey, TIdentity, TState>, Func<TIdentity, TSortKey>)

Reorders the view, descending, by a value from the identity of each item.

public static ReactiveCollection<TKey, TIdentity, TState> SortByIdentityDescending<TKey, TIdentity, TState, TSortKey>(this ReactiveCollection<TKey, TIdentity, TState> upstream, Func<TIdentity, TSortKey> selector) where TKey : notnull where TIdentity : notnull

Parameters

upstream ReactiveCollection<TKey, TIdentity, TState>

The collection or view to reorder.

selector Func<TIdentity, TSortKey>

Projects the sort value from an item's identity.

Returns

ReactiveCollection<TKey, TIdentity, TState>

A view ordered by that value, descending.

Type Parameters

TKey

The type of the keys.

TIdentity

The type of the immutable part of an item.

TState

The type of the mutable part of an item.

TSortKey

The type of the projected sort value.

Remarks