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

Description Usage Arguments Value

View source: R/utils.R

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

1

Arguments

char

The character vector to sort.

Value

The sorted character vector.


document documentation built on May 12, 2021, 9:07 a.m.