Skip to content

Commit

Permalink
show elapsed in order desc in modal of tree
Browse files Browse the repository at this point in the history
  • Loading branch information
YoussefDahi committed Dec 19, 2024
1 parent c705726 commit 31814b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/model/tree.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 31814b1

Please sign in to comment.