Skip to content

RAC Table: Click on the column to cycle sort in ascending/descending/none #9375

@lixiaoyan

Description

@lixiaoyan

Provide a general summary of the feature here

Currently, clicking on a column only cycles the sorting in ascending/descending order. We should add an option to include none (sortDescriptor = null) in the cycle.

🤔 Expected Behavior?

https://mui.com/x/react-data-grid/sorting/

Screen.Recording.2025-12-18.at.8.00.13.PM.mov

😯 Current Behavior

https://react-aria.adobe.com/Table#sorting

Screen.Recording.2025-12-18.at.8.01.23.PM.mov

💁 Possible Solution

allowsUnsorted?: boolean;
sortDescriptor?: SortDescriptor | null;
onSortChange?: (sortDescriptor: SortDescriptor | null) => void;

🔦 Context

https://mui.com/x/react-data-grid/sorting/
https://www.ag-grid.com/javascript-data-grid/row-sorting/
https://tanstack.com/table/latest/docs/framework/react/examples/sorting?panel=sandbox

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions