WarUI

Server-side sorting

GRID-A04-F09P0baselinePlanned

Sends the active sort model to the server with each window request and resets the cache when sorting changes. Multi-column sort order and per-column sort keys are serialised in a documented, stable format.

Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Server sort capability is enabled, with no initial sort.

Expected behavior

Clicking a header purges the cache, cancels in-flight requests and requests the first window with sortModel [{colId, sortKey, direction}]. Shift+click appends a secondary sort. The serialised request panel shows the exact payload.

Planned API surface

request.sortModelcolumn.sortKeyoption: resetScrollOnSortChangeevent: sortChanged

Acceptance criteria

  • A sort change invalidates all cached blocks. (pending)
  • sortModel order matches the user's sort priority. (pending)
  • In-flight requests made with the old sort are cancelled or their results discarded. (pending)
  • When resetScrollOnSortChange is false, the scroll index is kept and that window is refetched. (pending)