From 31814b1931f56a61e4979a87a783c62f0fb4ef97 Mon Sep 17 00:00:00 2001 From: YoussefDahi Date: Thu, 19 Dec 2024 17:09:04 +0100 Subject: [PATCH] show elapsed in order desc in modal of tree --- src/app/model/tree.model.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/model/tree.model.ts b/src/app/model/tree.model.ts index 6e3c6c1..218d9a5 100644 --- a/src/app/model/tree.model.ts +++ b/src/app/model/tree.model.ts @@ -54,6 +54,9 @@ export class TreeGraph { if (cell.value.nodes) { let res = tg.groupBy(cell.value.nodes, (v: any) => v.formatLink(cell.value.linkLbl)) let entries = Object.entries(res) + if(cell.value.linkLbl =="ELAPSED_LATENSE"){ + entries = entries.sort((a,b) => (+b[0].substring(0,b[0].length -1) - +a[0].substring(0,a[0].length -1) )) + } let max; let count = 0;