Skip to content
Snippets Groups Projects
Commit e41cbef9 authored by Christopher Pietsch's avatar Christopher Pietsch
Browse files

sort keywords by hierarchy

parent 861551a6
Branches
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ function Tags() {
})
.filter(d => d.display.indexOf(":") == -1 || filterWords.length == 0)
console.log(filterWordsReverse, keywordsNestGlobal)
// console.log(filterWordsReverse, keywordsNestGlobal)
var sliceNum = parseInt(sliceScale(width));
......@@ -131,7 +131,7 @@ function Tags() {
var keywordsNest = keywordsNestGlobal
.slice(0,sliceNum)
.sort(function(a,b){
return d3.ascending(a.display[0], b.display[0]);
return d3.ascending(a.key, b.key);
})
// c("keywordsNest", keywordsNest);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment