primereact
primereact copied to clipboard
TreeTable: RemovableSort not applied on the row children
Describe the bug
On clicking 3 times on the sort icon, the row children order doesn't revert to the initial state.
Reproducer
https://stackblitz.com/edit/wwaugc-jqqvan?file=src%2FApp.jsx,src%2Fservice%2FNodeService.jsx
PrimeReact version
10.3.1
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
The initial order of the applications children is: 2-React, 3-editor.app, 1-settings-app
- Click on the sort icon The applications children are sorted in an ascending order.
- Click on the sort icon The applications children are sorted in a descending order
- Click on the sort icon The applications children order should be: 2-React, 3-editor.app, 1-settings-app instead of 3-editor.app, 2-React, 1-settings.app
Expected behavior
The row children order should be reverted to the initial state on clicking 3 times on the sort icon.