Skip to content

Commit

Permalink
Also sort projects just before saving them
Browse files Browse the repository at this point in the history
  • Loading branch information
marvil07-adapt committed Nov 23, 2023
1 parent 6b3c862 commit 02dfaec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Console/Command/YamlTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ protected function writeYaml(string $yml_file, OutputInterface $output) {
* Helper to adjust contributions data member before dump.
*/
protected function prepareContributions() {
// Sort projects by identifier.
ksort($this->contributions['projects']);
// Sort people by identifier.
ksort($this->contributions['people']);
// Sort contributions by start date.
Expand Down

0 comments on commit 02dfaec

Please sign in to comment.