You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: