Closed prubin73 closed 5 months ago
This is intended, it uses the C locale by default. See the .locale
argument
https://dplyr.tidyverse.org/reference/arrange.html
You probably want to specify .locale = "en"
Thanks. I wondered if locale was an issue, but failed to read the fine print. (I assume it would use the operating system's default locale.) It's interesting that arrange
defaults to the C locale but desc
apparently does not.
Yea that's a good point, I'll open another issue about that in particular
When sorting a data frame/tibble based on a character column,
arrange
uses a different sort order than what is used bysort
and by most (all?) spreadsheet programs. This creates issues when working on data coming from/going to a spreadsheet. Interestingly, use of thedesc
function withinarrange
switches the sort order to conform tosort
and the spreadsheets.