This commit is contained in:
Andrea 2022-02-14 21:51:53 +01:00
parent 7b28beabcc
commit a143dcbb0e
1 changed files with 3 additions and 1 deletions

View File

@ -237,6 +237,8 @@
return {};
}
const locale = this.config.locale;
return buildDict(function* (that) {
const sorted = that.nounsRaw.sort((a, b) => {
if (a.approved && !b.approved) {
@ -245,7 +247,7 @@
if (!a.approved && b.approved) {
return -1;
}
return a.masc.toLowerCase().localeCompare(b.masc.toLowerCase(), this.config.locale);
return a.masc.toLowerCase().localeCompare(b.masc.toLowerCase(), locale);
});
for (let w of sorted) {
yield [w.id, new Noun(w)];