Sort licenses so that the most used license will appear first
parent
668655c21a
commit
ec6e05d55f
|
@ -123,6 +123,9 @@ EOT
|
||||||
$usedLicenses[$licenseName]++;
|
$usedLicenses[$licenseName]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sort licenses so that the most used license will appear first
|
||||||
|
arsort($dependencies, SORT_NUMERIC);
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach ($usedLicenses as $usedLicense => $numberOfDependencies) {
|
foreach ($usedLicenses as $usedLicense => $numberOfDependencies) {
|
||||||
$rows[] = array($usedLicense, $numberOfDependencies);
|
$rows[] = array($usedLicense, $numberOfDependencies);
|
||||||
|
|
Loading…
Reference in New Issue