1
0
Fork 0

Sort versions before print

pull/414/head
Martin Hasoň 2012-03-08 13:01:59 +01:00
parent 3e22084ea4
commit 98d7e31c74
1 changed files with 5 additions and 3 deletions

View File

@ -165,10 +165,12 @@ EOT
$versions = array();
foreach ($repos->findPackages($package->getName()) as $version) {
$versions[$version->getPrettyVersion()] = true;
$versions[$version->getPrettyVersion()] = $version->getVersion();
}
$versions = join(', ', array_keys($versions));
uasort($versions, 'version_compare');
$versions = join(', ', array_keys(array_reverse($versions)));
// highlight installed version
if ($installedRepo->hasPackage($package)) {
@ -193,4 +195,4 @@ EOT
}
}
}
}
}