blessed-components - v1.20.0
    Preparing search index...

    Interface SortDataTableRowsOptions<TRow>

    Options accepted by sortDataTableRows.

    interface SortDataTableRowsOptions<TRow extends TableRow = TableRow> {
        columns: readonly DataTableColumn<TRow>[];
        rows: readonly TRow[];
        sort?: DataTableSort;
    }

    Type Parameters

    Index

    Properties

    Properties

    columns: readonly DataTableColumn<TRow>[]

    Columns available for lookup by sort.columnId.

    rows: readonly TRow[]

    Ordered rows. Caller-owned data is never mutated.

    Sort request. Rows are returned unchanged when omitted or unmatched.