Skip to content

Commit

Permalink
Sort debug attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikvanantwerpen committed Jul 18, 2023
1 parent 0134fcb commit e721b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stack-graphs/src/visualization/visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ class StackGraph {

if (edge.hasOwnProperty("debug_info") && edge.debug_info.length > 0) {
tooltip.add_header("debug info");
for (let { key, value } of edge.debug_info) {
for (let { key, value } of edge.debug_info.sort((l, r) => l.key > r.key)) {
tooltip.add_row(key, value);
}
}
Expand Down Expand Up @@ -736,7 +736,7 @@ class StackGraph {

if (node.hasOwnProperty("debug_info") && node.debug_info.length > 0) {
tooltip.add_header("debug info");
for (let { key, value } of node.debug_info) {
for (let { key, value } of node.debug_info.sort((l, r) => l.key > r.key)) {
tooltip.add_row(key, value);
}
}
Expand Down

0 comments on commit e721b3a

Please sign in to comment.