diff --git a/module/environnement.js b/module/environnement.js index 4c9e58ba..91b412fe 100644 --- a/module/environnement.js +++ b/module/environnement.js @@ -62,7 +62,9 @@ export class Environnement { const compendiumsElement = await Promise.all( this.compendiumTables.map(async compTable => await compTable.getContent(itemFrequence, filter)) ); - return compendiumsElement.reduce((a, b) => a.concat(b)) + const elements = compendiumsElement.reduce((a, b) => a.concat(b)); + elements.sort(Misc.ascending(it => it.name)) + return elements; } async buildTable(itemFrequence, filter = it => true) {