git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: treat exception references as alert parameters
[sheet.git]
/
word
/
finder.js
diff --git
a/word/finder.js
b/word/finder.js
index 606f0334432b5d3f3a48ed0b0f3b51f3f62a20d9..a45dee4a06db6e3c7fc1c6fc4b808d4759dd9755 100644
(file)
--- a/
word/finder.js
+++ b/
word/finder.js
@@
-14,10
+14,18
@@
class WordFinder extends WordQuiz {
innerHTML: html,
});
}
innerHTML: html,
});
}
+ let levelpart = level <= 1 && this.cats[ref] && this.cats[ref].length > 1;
+ if (levelpart) {
+ put(worditem, '.large');
+ }
if (this.cats[ref]) {
// delve into subcategory
put(worditem, '.parent');
if (this.cats[ref]) {
// delve into subcategory
put(worditem, '.parent');
- this.add(worditem, this.cats[ref]);
+ this.add(worditem, this.cats[ref].sort((a, b) => {
+ const [worda, wordb] = [this.data[a], this.data[b]];
+ return (worda[1] % 1) - (wordb[1] % 1)
+ || worda[0].localeCompare(wordb[0]);
+ }));
}
});
}
}
});
}