all-contributors / all-contributors/cli

Alphabetical sorting doesn't work for non-ASCII languages. Missing locale setting.

Open
#349 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
425
Forks
149
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Alphabetical sorting doesn't work for languages with special characters or according to locale. Non-ASCII characters will sort at the end of the list.

**To Reproduce**
Steps to reproduce the behavior:
1. Add a user with name starting with non-ASCII character, e.g. `Č`
2. Set `contributorsSortAlphabetically` to `true`
3. Open README.md
4. See user starting with `Č` at the end of the list instead in correct alphabetical order (which is for my locale after `C`)

**Expected behavior**
Users will be sorted correctly using specified locale.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.