No possibility to reset sorting on custom sort
See original GitHub issueWhat package(s) are you using?
- [ 9.62.1 ]
carbon-components
- [ 6.61.1 ]
carbon-components-react
Summary
Relevant information
We are using custom sort function, the third click on header should result in unsort operation but I don’t see any way to catch that event and update the table. As per my understanding custom sorting function will be called on first and second click on the header, but on the third click, it won’t call the custom sort function. So how can we update the table to an unsorted state?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to create a custom sort when a regular sort won't do in ...
From the Order dropdown, choose Custom Sort, which will open a new dialog, where you can create the custom sort (list). In the...
Read more >Excel Custom Sort list does not start over with new higher level
The level for Semester does not reset when the Year changes. The Semester column is the only one that has a custom sort...
Read more >Reset Sorting on Columns - Flexmonster
However, there is no option to reset/remove the sorting. ... We suggest using the following workaround in order to clear sorting after ...
Read more >Pivot Table Sorting Fixes & Tips - Contextures
Applying the Custom Sort Order · Refresh the pivot table. · If the field which has items from a custom list is set...
Read more >apex - Custom sort on product related list on opportunity in ...
By default, sorting happens by the SortOrder field. For the standard UI and the standard functionality, we found no way to change it....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe that it should preserve the original order on the third click, here is a quick codesandbox that copies over the default sort behavior to demonstrate. Let me know if you instead would like to change the ordering from the default ordering passed to component and I can help out there, too. Hope this helps!
you’re right that when no sort is applied, the sorting function will not be called. instead, the initial row order is returned and stored in the table’s
state.rowIds