Link to the code that reproduces this issue:
https://codesandbox.io/p/sandbox/kolibri-table-sorting-rymt78
Can you categorise where the error occurs?
React with TS
Which browser or operating system do you used to test KoliBri?
How to reproduce issue?
- Create an Array with some data presorted
- feed it to the stateful table
- put some of the columns visibile and any of them sortable
- on sorting through one or more columns, when return to the unsorted state (NOS) it rests on the last sorting
codesandbox example https://codesandbox.io/p/sandbox/kolibri-table-sorting-rymt78
Current vs. Expected:
Expected: return to initial sorting whether by remembering the inital sort or by prioviding a optional funtion to provide that logic. Alternativly an event where the sorting and its current state/direction is published so i can manage to reset the sorting. In our case the data is presorted by a column which is not shown/populated as a column and that has unfortunately legacy reasons.
Environment informations:
bash { "Operating System": { "platform": "win32", "arch": "x64", "version": "10.0.26100" }, "Binaries": { "node": "v22.13.0", "npm": "10.9.2", "pnpm": "N/A", "yarn": "N/A" }, "Relevant Packages": { "@public-ui/components": "2.2.8", "@public-ui/react": "2.2.8", "@public-ui/schema": "2.0.15", "@public-ui/themes": "2.2.8", "react": "^19.1.0", "react-dom": "^19.1.0", "typescript": "^5.8.3" } }
Link to the code that reproduces this issue:
https://codesandbox.io/p/sandbox/kolibri-table-sorting-rymt78
Can you categorise where the error occurs?
React with TS
Which browser or operating system do you used to test KoliBri?
How to reproduce issue?
codesandbox example https://codesandbox.io/p/sandbox/kolibri-table-sorting-rymt78
Current vs. Expected:
Expected: return to initial sorting whether by remembering the inital sort or by prioviding a optional funtion to provide that logic. Alternativly an event where the sorting and its current state/direction is published so i can manage to reset the sorting. In our case the data is presorted by a column which is not shown/populated as a column and that has unfortunately legacy reasons.
Environment informations:
bash { "Operating System": { "platform": "win32", "arch": "x64", "version": "10.0.26100" }, "Binaries": { "node": "v22.13.0", "npm": "10.9.2", "pnpm": "N/A", "yarn": "N/A" }, "Relevant Packages": { "@public-ui/components": "2.2.8", "@public-ui/react": "2.2.8", "@public-ui/schema": "2.0.15", "@public-ui/themes": "2.2.8", "react": "^19.1.0", "react-dom": "^19.1.0", "typescript": "^5.8.3" } }