Reactable is configured to let columns to be sortable, which is great. Unfortunately, the sorting doesn't seem to work with factor levels.
While by default factor levels are sorted alphabetically, this is not always the case.
Take the code below as an example: I would love to see the column species sorted according to the levels' order (Human, and then the rest of levels, alphabetically), but instead, they are sorted alphabetically.
Reactable is configured to let columns to be sortable, which is great. Unfortunately, the sorting doesn't seem to work with factor levels.
While by default factor levels are sorted alphabetically, this is not always the case.
Take the code below as an example: I would love to see the column
species
sorted according to the levels' order (Human
, and then the rest of levels, alphabetically), but instead, they are sorted alphabetically.This is the output: