sort_unlocale: Sort a Character Vector in Lexical Order Avoiding the Locale

View source: R/utils.R

sort_unlocaleR Documentation

Sort a Character Vector in Lexical Order Avoiding the Locale

Description

sort uses the collation of the locale (see Comparison), which results in different sorting. If a (RUnit) check relies on sorting, we need to avoid the locale.

Usage

sort_unlocale(char)

Arguments

char

The character vector to sort.

Value

The sorted character vector.


document documentation built on July 9, 2023, 5:22 p.m.