Temporarily change collation order by changing the value of the LC_COLLATE locale.
LC_COLLATE
with_collate(new, code)
[character(1)] New collation order
[character(1)]
[any] Code to execute in the temporary environment
[any]
[any] The results of the evaluation of the code argument.
code
withr for examples
withr