From e729939936196e9766529b1ee837f52d099292ff Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sat, 15 Aug 2020 09:34:21 +0200 Subject: [PATCH] =?UTF-8?q?[nouns]=20fix=20sortowania,=20niezatwierdzone?= =?UTF-8?q?=20u=20g=C3=B3ry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/neutratywy.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/neutratywy.vue b/pages/neutratywy.vue index d283ca578..7565d0832 100644 --- a/pages/neutratywy.vue +++ b/pages/neutratywy.vue @@ -293,6 +293,12 @@ nouns() { return buildDict(function* (that) { const sorted = that.nounsRaw.sort((a, b) => { + if (a.approved && !b.approved) { + return 1; + } + if (!a.approved && b.approved) { + return -1; + } return a.masc.toLowerCase().localeCompare(b.masc.toLowerCase()); }); for (let w of sorted) {