Skip to content

Commit

Permalink
#145 CEASN export: hasChild is now sorted by framework index.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomilar committed Apr 24, 2019
1 parent 97a2539 commit 0cf6fdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/c-adapter/ceasn/ceasn.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ function cassFrameworkAsCeasn() {
f.competency = [];
for (var i = 0; i < allCompetencies.length; i++) {
var c = competencies[allCompetencies[i]];
if (c["ceasn:hasChild"] != null && c["ceasn:hasChild"]["@list"] != null)
c["ceasn:hasChild"]["@list"].sort(function (a, b) {
return allCompetencies.indexOf(a) - allCompetencies.indexOf(b);
});
if (c == null) continue;
delete competencies[allCompetencies[i]];
var id = c.id;
Expand Down

0 comments on commit 0cf6fdc

Please sign in to comment.