useSortedItems

DataTable
stable

API

Signature

Full TypeScript signature sourced from the composable file.

typescript

API

Parameters

Input parameters accepted by this composable.

props
required
{ customKeySort: TDataTableCompareFunction | undefined }
items
required
Ref<T[]>
sortBy
required
Ref<Array<IDataTableSortItem>>
options
{ transform?: (item: T) => Record<string, unknown> sortFunctions?: Ref<Record<string, TDataTableCompareFunction> | undefined> sortRawFunctions?: Ref<Record<string, TDataTableCompareFunction> | undefined> }