mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
[nouns] fix sortowania, niezatwierdzone u góry
This commit is contained in:
parent
d27730bce0
commit
e729939936
@ -293,6 +293,12 @@
|
|||||||
nouns() {
|
nouns() {
|
||||||
return buildDict(function* (that) {
|
return buildDict(function* (that) {
|
||||||
const sorted = that.nounsRaw.sort((a, b) => {
|
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());
|
return a.masc.toLowerCase().localeCompare(b.masc.toLowerCase());
|
||||||
});
|
});
|
||||||
for (let w of sorted) {
|
for (let w of sorted) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user