API REFERENCE

sort

Initial ascending/descending sort or cleared sort for this column.

What does this API do?

Initial ascending/descending sort or cleared sort for this column.

Exact input and result types

typescript
sort?: 'asc' | 'desc' | null
ItemValue
RequiredOptional
Input type'asc' | 'desc' | null

Usage flow

Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Feature explanations and examples