Skip to content

Commit

Permalink
Merge pull request netz98#517 from convenient/develop
Browse files Browse the repository at this point in the history
Update ordering of compare-versions so that output is alphabetised
  • Loading branch information
cmuench committed Mar 25, 2015
2 parents 3d0ef0d + 570114f commit 587fa26
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -87,7 +87,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!$input->getOption('format')) {

usort($table, function($a, $b) {
return $a['Status'] !== 'OK';
if ($a['Status'] !== 'OK' && $b['Status'] === 'OK') {
return 1;
}
if ($a['Status'] === 'OK' && $b['Status'] !== 'OK') {
return -1;
}
return strcmp($a['Setup'], $b['Setup']);
});

array_walk($table, function (&$row) {
Expand Down

0 comments on commit 587fa26

Please sign in to comment.