From d8a553dc61f7eaa56dbc0182e38ac65d5e5d7c8f Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Thu, 13 Aug 2020 19:45:27 +0200 Subject: [PATCH] [neutratywy] fix sortowania wielkich liter --- pages/neutratywy.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/neutratywy.vue b/pages/neutratywy.vue index fbaad2839..d283ca578 100644 --- a/pages/neutratywy.vue +++ b/pages/neutratywy.vue @@ -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);