In forcats we can sort levels inorder, infreq, inseq. But is there function to sort alphabetically?
Sometimes I just use e.g. case_when to define some groups and I give them prefixes a,b,c,... and to have it in order i need to use base as.factor. Or if I use date/time to char conversion (e.g %Y-%m).
I would expect something like fct_inalpha (but with better name).
Not completly. As is stated in help to forcats there are problems with locale and sorting. So dedicated function with default C collation could be helpful.