Method SortByArrival
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Collections.dll
SortByArrival<TKey, TIdentity, TState>(ReactiveCollection<TKey, TIdentity, TState>)
Reorders by arrival, which is the order of the collection. It is available above each stage.
public static ReactiveCollection<TKey, TIdentity, TState> SortByArrival<TKey, TIdentity, TState>(this ReactiveCollection<TKey, TIdentity, TState> upstream) where TKey : notnull where TIdentity : notnull
Parameters
upstreamReactiveCollection<TKey, TIdentity, TState>The collection or view to reorder.
Returns
- ReactiveCollection<TKey, TIdentity, TState>
A view of
upstreamin the order its items arrived.
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.