Skip to content

Commit

Permalink
Sort projects before showing them
Browse files Browse the repository at this point in the history
  • Loading branch information
marvil07-adapt committed Nov 23, 2023
1 parent c46a833 commit 6b3c862
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/Command/AddCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ protected function getOrganization(InputInterface $input, OutputInterface $outpu
protected function getProject(InputInterface $input, OutputInterface $output) {
$helper = $this->getHelper('question');
$projects = [self::UNDEFINED_PROJECT_KEY => self::UNDEFINED_PROJECT];
ksort($this->contributions['projects']);
foreach ($this->contributions['projects'] as $project_key => $project) {
$projects[$project_key] = $project['name'];
}
Expand Down

0 comments on commit 6b3c862

Please sign in to comment.