Skip to content
Snippets Groups Projects
Commit b3c7402b authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch 'keywords-to-be-selected' into 'staging'

Sort keywords alphabetically

Closes #153

See merge request arsnova/topic-cloud!68
parents a23005c6 2cdbecb4
No related merge requests found
......@@ -85,7 +85,9 @@ export class SpacyDialogComponent implements OnInit, AfterContentInit {
)
.subscribe(words => {
this.keywords = words;
this.keywords.sort((a, b) => a.word.localeCompare(b.word));
this.hasKeywordsFromSpacy = this.keywords.length > 0;
//deep copy
this.keywordsOriginal = [...words];
for (let i = 0; i < this.keywordsOriginal.length; i++) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment