Sort licenses so that the most used license will appear first

main
Jonas Drieghe 4 years ago
parent 668655c21a
commit ec6e05d55f

@ -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);

Loading…
Cancel
Save