[neutratywy] fix sortowania wielkich liter

This commit is contained in:
Andrea Vos 2020-08-13 19:45:27 +02:00
parent c34eebf9f0
commit d8a553dc61

View File

@ -292,7 +292,10 @@
computed: {
nouns() {
return buildDict(function* (that) {
for (let w of that.nounsRaw) {
const sorted = that.nounsRaw.sort((a, b) => {
return a.masc.toLowerCase().localeCompare(b.masc.toLowerCase());
});
for (let w of sorted) {
yield [w.id, new Noun(w)];
}
}, this);