One entry in the sort model.
The model is an ordered array: the first entry is the primary sort, and later entries break ties in the ones before them.
const sortModel: SortModelItem[] = [ { colId: 'status', sort: 'asc' }, { colId: 'createdAt', sort: 'desc' },]; Copy
const sortModel: SortModelItem[] = [ { colId: 'status', sort: 'asc' }, { colId: 'createdAt', sort: 'desc' },];
The column id to sort on.
Direction to sort in.
One entry in the sort model.
The model is an ordered array: the first entry is the primary sort, and later entries break ties in the ones before them.
Example: Sort by status, then by newest first