Method SortByDescending
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Collections.dll
SortByDescending<TKey, TIdentity, TState, TSortKey>(ReactiveCollection<TKey, TIdentity, TState>, Func<TIdentity, TState, TSortKey>)
Reorders the view, descending, by a value projected from each item.
public static ReactiveCollection<TKey, TIdentity, TState> SortByDescending<TKey, TIdentity, TState, TSortKey>(this ReactiveCollection<TKey, TIdentity, TState> upstream, Func<TIdentity, TState, TSortKey> selector) where TKey : notnull where TIdentity : notnull
Parameters
upstreamReactiveCollection<TKey, TIdentity, TState>The collection or view to reorder.
selectorFunc<TIdentity, TState, TSortKey>Projects the sort value from an item.
Returns
- ReactiveCollection<TKey, TIdentity, TState>
A view ordered by that value, descending.
Type Parameters
TKeyThe type of the keys.
TIdentityThe type of the immutable part of an item.
TStateThe type of the mutable part of an item.
TSortKeyThe type of the projected sort value.