Skip to content

Commit c2a6cf5

Browse files
committed
Sort method results before using for graph so tooltips display correctly.
1 parent 31c6319 commit c2a6cf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Report/Html/Renderer/Dashboard.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ private function complexity(array $classes, string $baseLink): array
117117
}
118118

119119
usort($result['class'], fn($a, $b) => ($a[0] <=> $b[0]));
120+
usort($result['method'], fn($a, $b) => ($a[0] <=> $b[0]));
120121

121122
$class = json_encode($result['class']);
122123

0 commit comments

Comments
 (0)