mates-grid docs

mates-grid

Sorting

Click a leaf header to cycle sort. Hold Shift or Ctrl/Cmd to add a second key. The current model lives on grid.sortModel.

Default sort by amount

The demo starts sorted descending. Multi-sort shows priority badges in the header.

sort amount desc

gridAtom({
  columns,
  data: people,
  sortModel: [{ colId: "amount", sort: "desc" }],
});

// later:
grid.sortModel.set([{ colId: "name", sort: "asc" }]);