1
0
Fork 0

Sort licenses so that the most used license will appear first

pull/9010/head
Jonas Drieghe 2020-06-23 19:44:12 +02:00
parent 668655c21a
commit ec6e05d55f
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ EOT
$usedLicenses[$licenseName]++;
}
// Sort licenses so that the most used license will appear first
arsort($dependencies, SORT_NUMERIC);
$rows = array();
foreach ($usedLicenses as $usedLicense => $numberOfDependencies) {
$rows[] = array($usedLicense, $numberOfDependencies);