Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. What users can ask
  2. What the grid needs
  3. What is declined
  4. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

Sorting

On this page

  1. What users can ask
  2. What the grid needs
  3. What is declined
  4. Next

Your users say which rows come first, and the grid sorts. Several sort keys keep the order the user gives them.

What users can ask#

Ask

Sort all employees newest hires first

Changes1 change
  1. 1sort startDate descending
Ask

Sort by department A to Z, then salary highest first, then name A to Z

Changes3 changes
  1. 1sort department ascending
  2. 2sort salary descending
  3. 3sort name ascending

A follow-up changes only the sort. After "Show only Engineering employees, highest salary first":

Ask

Now change only the sort to name A to Z

Changes2 changes
  1. 1filter department is Engineering
  2. 2sort name ascending

Words such as "highest", "top", "latest" and "newest" sort descending; "lowest", "earliest" and "oldest" ascending; alphabetical order is ascending. "Top 3" also selects the first three rows: see Row selection.

What the grid needs#

SettingWhereWith MUI's stock resolverWith the Gridsay helper
disableColumnSortingWhereGrid propWith MUI's stock resolverNot sent. Gridsay answers with a sort, the grid does not apply it, and the panel still reports success.With the Gridsay helperSent. A question that needs a sort is declined.
sortable: falseWhereColumnWith MUI's stock resolverNot sent. The grid applies a sort on that column anyway: MUI allows sorting it from code.With the Gridsay helperSent. A sort on that column is declined.
Row groupingWhereGridWith MUI's stock resolverA sort on a grouped column sorts the rows inside each group; the groups keep their order.With the Gridsay helperThe sort moves to the grouping column, so the groups reorder.
rowGroupingColumnModeWhereGrid propWith MUI's stock resolverNo effect: the groups do not reorder.With the Gridsay helperIn single mode, all group levels share one direction: the first grouped column in the sort decides it.

To order groups by their totals ("revenue by brand, highest first"), Gridsay sorts by the aggregated column: see Aggregation.

What is declined#

A question that names something no column holds is declined, with a suggestion where the model has one:

Ask

show the employees with the best work-life balance

ChangesNo change
Refused

I can't measure work-life balance; try showing the top-rated employees instead.

Your user reads this sentence. The table stays as it was.

With the helper, a sort your grid does not allow is declined too. If an answer still uses it after one correction, the sentence is "Sorting is switched off for this table." or, naming the column, The `salary` column can't be sorted.

Sorting by the grid's own controls, such as the selection checkbox, is declined: they are not data.

Next#

  • Row selection
  • Grouping
  • Filtering