Skip to content

Home > @liquidrazor/list-display > applySorting

applySorting() function

Applies sorting to a list of rows.

Signature:

typescript
applySorting: <TRow = AnyRow>(rows: TRow[], ctx: SortingContext<TRow>) => TRow[]

Parameters

Parameter

Type

Description

rows

TRow[]

ctx

SortingContext<TRow>

Returns:

TRow[]