Skip to content

)} ,System.Collections.Generic.IComparer{--0})}

OrderedLiveQuery.ThenBy(Func) method

Defined in

Type: OrderedLiveQuery Namespace: ReactiveList.Reactive.Queries Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public OrderedLiveQuery<T> ThenBy<TKey>(Func<T, TKey> keySelector)

  2. public OrderedLiveQuery<T> ThenBy<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)

1. Overload

public OrderedLiveQuery<T> ThenBy<TKey>(Func<T, TKey> keySelector)

View source (opens in a new tab)

Summary: Breaks ties ascending by another key.

Type parameters

NameDescription
TKeyThe sort key type.

Parameters

NameTypeDescription
keySelectorFunc (opens in a new tab)Takes the sort key from an item.

Returns: OrderedLiveQuery -- The extended query.

2. Overload

public OrderedLiveQuery<T> ThenBy<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)

View source (opens in a new tab)

Summary: Breaks ties ascending by another key.

Type parameters

NameDescription
TKeyThe sort key type.

Parameters

NameTypeDescription
keySelectorFunc (opens in a new tab)Takes the sort key from an item.
comparerIComparer (opens in a new tab)Compares two keys.

Returns: OrderedLiveQuery -- The extended query.