glin / reactable

Interactive data tables for R
https://glin.github.io/reactable
Other
627 stars 80 forks source link

How to restore the table before sort #134

Closed rickyking closed 3 years ago

rickyking commented 3 years ago

Hi,

This is a great library. Thanks for putting this together!

Just one question: how can I reset the sort? When I click it rotate from asc to desc but no way to go back to default order?

glin commented 3 years ago

Hi, you can reset the sort by holding the shift key while sorting. If the shift key is held down, the sort order will go: Ascending, Descending, Default. I've realized this isn't specifically documented anywhere, so I'll get this added to the docs.

rickyking commented 3 years ago

Thanks!

rickyking commented 3 years ago

Oh just thank you for your great library. This is what I built with your library:

https://www.trading-logic.com/MarketDashboard.html

D3SL commented 6 months ago

I found this post looking for this exact answer, but have one additional question: Is there a way to restore defaultSorted after un-sorting through shift clicking?