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 Aug. 19, 2022, 5:23 p.m.