diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 7e575f86..614dec35 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -220,6 +220,7 @@ export class RdDUtility { Handlebars.registerHelper('caseTmr-type', coord => TMRUtility.getTMRType(coord)); Handlebars.registerHelper('typeTmr-name', coord => TMRUtility.typeTmrName(coord)); Handlebars.registerHelper('equals', (a, b) => a == b); + Handlebars.registerHelper('sortCompetence', competences => competences.sort((a, b) => { return a.name.localeCompare(b.name); }) ); return loadTemplates(templatePaths); } diff --git a/templates/actor-sheet-categorie-competences-partial.html b/templates/actor-sheet-categorie-competences-partial.html index a3fa8da9..8a20a5e5 100644 --- a/templates/actor-sheet-categorie-competences-partial.html +++ b/templates/actor-sheet-categorie-competences-partial.html @@ -1,7 +1,7 @@
{{categorie}}
-