Skip to content

[Question]: Standardize WORDLIST sorting using radix #247

@Bai-Li-NOAA

Description

@Bai-Li-NOAA

What is your question?

I noticed that FIMS is using radix sorting for the WORDLIST in dev. This is a strict ASCII/C-style sort and doesn't mix cases. Do we want to standardize on the radix style? If so, we should update the instructions in .github/workflows/spell-check.yml and ask users to sort words using
sorted_words <- sort(unique(all_words), method = "radix")

Example:

words <- c("apple", "Banana", "banana", "Apple")

# Default sort (locale-dependent)
sort(words)
#> "apple" "Apple" "banana" "Banana"

# Radix sort (strict ASCII / C-style, case-sensitive)
sort(words, method = "radix")
#> "Apple" "Banana" "apple" "banana"

Additional context

No response

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedtriage_neededThis issue needs review

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions