Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit e721b3a

Browse files
author
Hendrik van Antwerpen
committed
Sort debug attributes
1 parent 0134fcb commit e721b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stack-graphs/src/visualization/visualization.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ class StackGraph {
705705

706706
if (edge.hasOwnProperty("debug_info") && edge.debug_info.length > 0) {
707707
tooltip.add_header("debug info");
708-
for (let { key, value } of edge.debug_info) {
708+
for (let { key, value } of edge.debug_info.sort((l, r) => l.key > r.key)) {
709709
tooltip.add_row(key, value);
710710
}
711711
}
@@ -736,7 +736,7 @@ class StackGraph {
736736

737737
if (node.hasOwnProperty("debug_info") && node.debug_info.length > 0) {
738738
tooltip.add_header("debug info");
739-
for (let { key, value } of node.debug_info) {
739+
for (let { key, value } of node.debug_info.sort((l, r) => l.key > r.key)) {
740740
tooltip.add_row(key, value);
741741
}
742742
}

0 commit comments

Comments
 (0)