diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php index 2147e3aef..dd0de2d8a 100644 --- a/src/Composer/Command/LicensesCommand.php +++ b/src/Composer/Command/LicensesCommand.php @@ -124,7 +124,7 @@ EOT } // Sort licenses so that the most used license will appear first - arsort($dependencies, SORT_NUMERIC); + arsort($usedLicenses, SORT_NUMERIC); $rows = array(); foreach ($usedLicenses as $usedLicense => $numberOfDependencies) {