Skip to content

Commit

Permalink
Sort identifiers again
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 22, 2023
1 parent 3cff7ab commit 120710c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions identifier-extractor/merge.php
Expand Up @@ -53,6 +53,16 @@
foreach ($dataByIdentifier as $identifier => $rows) {
ksort($rows);
$dataByIdentifier[$identifier] = $rows;
foreach ($rows as $class => $repos) {
foreach ($repos as $repo => $urls) {
$urls = array_values(array_unique($urls));
sort($urls);
$dataByIdentifier[$identifier][$class][$repo] = $urls;
}

ksort($repos);
$dataByIdentifier[$identifier][$class] = $repos;
}
}

echo Json::encode($dataByIdentifier, true);

0 comments on commit 120710c

Please sign in to comment.