sort labels by key

master
Dirk Heilig 2024-08-29 10:46:16 +02:00
parent ac2c07925a
commit d608bdc2f4
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ function output(): void
foreach ($filteredData as $entry) { foreach ($filteredData as $entry) {
$labels = []; $labels = [];
if (isset($entry["labels"])) { if (isset($entry["labels"])) {
ksort($entry["labels"]);
foreach ($entry["labels"] as $labelName => $labelValue) { foreach ($entry["labels"] as $labelName => $labelValue) {
$labels[] = $labels[] =
"$labelName=" . "$labelName=" .