From 673196c6444da7835d4bf54d0819ab70ccfecbea Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 11 Feb 2023 21:20:12 +0100 Subject: [PATCH] Fix: trier le contenu --- module/rdd-utility.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index e69a57b0..3b186b1d 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -444,12 +444,16 @@ export class RdDUtility { static buildContenuConteneur(conteneur, options = {}, optionsArbre = {}) { RdDUtility.prepareOptionsArbreInventaire(conteneur, optionsArbre); const display = optionsArbre.ouvert ? 'item-display-show' : 'item-display-hide'; - let strContenu = `"; + const lignesContenu = conteneur.subItems.sort(Misc.ascending(it => it.name)) + .map(contenu => this.buildLigneInventaire(contenu, options, optionsArbre)); + + return `"; + } /* -------------------------------------------- */