Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale aware sorting #43

Open
Sora1248 opened this issue May 7, 2017 · 0 comments
Open

Locale aware sorting #43

Sora1248 opened this issue May 7, 2017 · 0 comments

Comments

@Sora1248
Copy link

Sora1248 commented May 7, 2017

The alphabetical sorting of the shopping list should be locale aware.

At the moment the app seems to sort the list according to the letter's codepoint or raw byte-value. As a result the German umlauts and ß are sorted after the z. When sorting words in German the letters ä, ö, ü and ß are sorted as if they where a, o, u and ss accordingly. Foreign latin letters with accents etc. are sorted as if they have no accents.
This makes finding existing entries in the list surprisingly hard, especially if the words begin with an umlaut.

As these rules are specific to the German language and other languages will sort these letters at other positions (Swedish, Finnish) I'll suggest to use some existing locale aware functions to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant