Appsilon / reactable.extras

Extra features for reactable package
https://appsilon.github.io/reactable.extras/
41 stars 4 forks source link

[Bug]: Sorting character columns are slow #19

Closed vibalre closed 1 year ago

vibalre commented 1 year ago

Guidelines

Project Version

No response

Platform and OS Version

No response

Existing Issues

No response

What happened?

Sorting (descending) strings is slow to render.

Steps to reproduce

  1. Use reactable_extras_ui() and reactable_extras_server() to render a large data (> 500K rows) with a character column.
  2. Sort the character column ascending. This should be instant.
  3. Sort the character column descending. The reactable is slow to respond.
  4. Remove sorting on the character column. The reactable is slow to respond.

Expected behavior

Sorting a character column should be almost instant or at least consistent with the initial sorting speed.

The sorting logic uses dplyr::arrange with dplyr::desc and the issue might be on the use of these two functions.

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response